Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numbers = input("Please enter the numbers separated by a space: ")
- numbers = numbers.split(" ")
- num_list = []
- for n in numbers:
- num_list.append(int(n))
- num_list.sort()
- for i in num_list:
- print(i, end=" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement