Files

6 lines
117 B
Python
Raw Permalink Normal View History

2026-10-08 15:18:13 +08:00
def square(x:int):
return x * 3
numbers = [1, 2, 3, 4, 5]
result = map(square, numbers)
print(list[int](result))