I tried to run the following code.
def fahrenheit(T):
return (9.0/5)*T + 32
temp = [2 , 43 , 54 , 67 , 78 , 89.9]
map(fahrenheit,temp)
Why does map function prints
<map at 0x15a6cf17550>
I tried to run the following code.
def fahrenheit(T):
return (9.0/5)*T + 32
temp = [2 , 43 , 54 , 67 , 78 , 89.9]
map(fahrenheit,temp)
Why does map function prints
<map at 0x15a6cf17550>
Use list(map(fahrenheit,temp))
since you need list representation
[35.6, 109.4, 129.2, 152.60000000000002, 172.4, 193.82000000000002]