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

Learn Lambda functions by building an expense tracker step 16 instructions unclear #53463

Closed
a2937 opened this issue Jan 30, 2024 · 1 comment · Fixed by #54624
Closed

Learn Lambda functions by building an expense tracker step 16 instructions unclear #53463

a2937 opened this issue Jan 30, 2024 · 1 comment · Fixed by #54624
Labels
new python course scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: PR in works Work in Progress (WIP) Issues. type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.

Comments

@a2937
Copy link
Member

a2937 commented Jan 30, 2024

Describe the Issue

A lot of assumptions have to be made in order to understand step sixteen of this project. While lambda expressions were introduced back in step eleven, they might not have been fully explained. It barely explained the basic syntax , and wasn't extremely clear on the parameter's purpose. Secondly, this step did not clarify that the lamda expression parameter was indeed a dictionary.

Affected Page

https://www.freecodecamp.org/learn/scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/step-16

Your code

def total_expenses(expenses):
    lambda expense: expense['amount']

This is the solution the challenge wants, as said in the hint text.

Expected behavior

Back in step eleven, lamda expressions could be explained a little better. Maybe like explaining that lamda expression variables are just like the parameters passed into normal functions. And as for step sixteen, pointing out that the parameter is meant to be a dictionary could have been helpful instead of it just being implied.

Screenshots

No response

System

  • Device: Desktop
  • OS: Windows 10
  • Browser: Firefox
  • Version: 122.0

Additional context

No response

@a2937 a2937 added type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc. scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: waiting triage This issue needs help from moderators and users to reproduce and confirm its validity and fix. labels Jan 30, 2024
@tomitokko
Copy link

This is a fix for this issue @Dario-DC
#53989

@a2937 a2937 changed the title Learn Lambda functions by building an expense tracker step 16 insturctions unclear Learn Lambda functions by building an expense tracker step 16 instructions unclear Mar 6, 2024
@naomi-lgbt naomi-lgbt added status: PR in works Work in Progress (WIP) Issues. and removed status: waiting triage This issue needs help from moderators and users to reproduce and confirm its validity and fix. labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new python course scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: PR in works Work in Progress (WIP) Issues. type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.
Projects
None yet
4 participants