Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with an example used for Map function. Week 2. #3

Open
navsx opened this issue Mar 13, 2019 · 0 comments
Open

Issue with an example used for Map function. Week 2. #3

navsx opened this issue Mar 13, 2019 · 0 comments

Comments

@navsx
Copy link

navsx commented Mar 13, 2019

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]
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant