Advertisement
Spocoman

06. Sort

Jan 28th, 2022
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. numbers = list(map(int, input().split(' ')))
  2.  
  3.  
  4. def sort_num():
  5.     return sorted(numbers)
  6.  
  7.  
  8. print(sort_num())
  9.  
  10. Или:
  11.  
  12. def sort_num():
  13.     return sorted(list(map(int, input().split(' '))))
  14.  
  15.  
  16. print(sort_num())
  17.  
  18.  
  19.  
  20. Или:)
  21.  
  22. print(sorted([int(i) for i in input().split()]))
  23.  
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement