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:
- if n.isdigit():
- num_list.append(int(n))
- num_list.sort()
- for i in num_list:
- if i >= 0:
- print(i, end=" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement