Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = input().split()
- def list_round():
- for i in range(0, len(num)):
- num[i] = round(float(num[i]))
- return num
- print(list_round())
- Или:
- num = input().split()
- def list_round():
- return [round(float(x)) for x in num]
- print(list_round())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement