-
-
Notifications
You must be signed in to change notification settings - Fork 35.9k
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
Building an Expense Tracker - Step 13 - map
object print out not explained
#53135
Comments
that's correct, it outputs a map object, that's the output on the console. One would need to use |
Maybe better would be wrapping it in the |
map
object print out not explained
Adding one o two steps to expand on |
I am trying to work on this.. one simple solution is make it a list or iterate over using a loop. |
Why are we even asking them to print that? This is also different between Python 2 and Python 3. So maybe that is worth mentioning? |
thank you for the explanation, makes sense but since the step explicitly tells you to print the result, it did seem like a console bug. |
The way it is written makes me think it was originally written for Python 2 as that would have printed the list. |
Okay now since we know that it is python3 and there was a need of printing. So what should be done. |
Describe the Issue
Step 13 teaches the use of the map() function with the lambda function
test = lambda x: x * 2
on an array of integers.The exercise console doesn't show the result of this operation, but instead displays
>>> <map object at 0x10fe398>
Affected Page
https://www.freecodecamp.org/learn/scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/step-13
Your code
Expected behavior
I expect I should see the result of this operation in the console.
Screenshots
System
Additional context
No response
The text was updated successfully, but these errors were encountered: