Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numbers = list(map(int, input().split(' ')))
- output = [-x for x in numbers]
- print(output)
- Тарикатско решение:)
- print([-x for x in list(map(int, input().split(' ')))])
- Или с ламбда:
- print(list(map(lambda x: int(x) * -1, input().split(' '))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement