Advertisement
biswasrohit20

version 1

Apr 11th, 2021
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. numbers = input("Please enter the numbers separated by a space: ")
  2. numbers = numbers.split(" ")
  3. num_list = []
  4. for n in numbers:
  5. num_list.append(int(n))
  6.  
  7. num_list.sort()
  8. for i in num_list:
  9. print(i, end=" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement