I am trying to convert the values of a list using a function map, but I get a weird result.
s = input("input some numbers: ")
i = map(int, s.split())
print(i)
gives:
input some numbers: 4 58 6
<map object at 0x00000000031AE7B8>
why doesn't it return ['4', '58', '6']?
source
share