Open navsx opened 5 years ago
`def fahrenheit(T): return ((float(9)/5)T + 32) def celsius(T): return (float(5)/9)(T-32)
temp = [0, 22.5, 40,100] F_temps = map(fahrenheit, temp)
map(celsius, F_temps)
C_temps=map(celsius, F_temps) l2=[i for i in C_temps] `
The issue is with the following code:
`def fahrenheit(T): return ((float(9)/5)T + 32) def celsius(T): return (float(5)/9)(T-32)
temp = [0, 22.5, 40,100] F_temps = map(fahrenheit, temp)
When the output is enquired by taking the map entities in a list. It is empty
map(celsius, F_temps)
in order to see the elements
C_temps=map(celsius, F_temps) l2=[i for i in C_temps] `