Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numbers = list(map(float,input().split()))
- def abs_num (x):
- return abs(x)
- print(list(map(abs_num, numbers)))
- Решение с ламбда:)
- print(list(map(lambda x: abs(x), list(map(float,input().split())))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement