xxxxxxxxxx
# Read the input
input_list = [orange, ant, phone, banana, notebook]
# Use the sorted function on the input_list with the key argument set as 'len'
output_list = sorted(input_list, key = len)
# Output the sorted list
print(output_list)
xxxxxxxxxx
.global _start
.intel_syntax noprefix
_start:
mov rax, 0x01
mov rdi, 0x01
lea rsi, qword ptr[hello_world]
mov rdx, 0xc
syscall
mov rax, 0x3c
mov rdi, 0x00
syscall
hello_world:
.asciz "Hello World\n"