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

wrong function displayed in lesson 25 #1023

Open
Sorites101 opened this issue Nov 17, 2024 · 0 comments
Open

wrong function displayed in lesson 25 #1023

Sorites101 opened this issue Nov 17, 2024 · 0 comments
Labels
content Issues with the lessons, practices, including their code examples

Comments

@Sorites101
Copy link

For lesson 25 "looping over dictionaries", there is an example of code that I think is incorrect.

Near the end of lesson 25 there is a bit that says, "instead of printing the key-value pairs to the output console, we can code and call a dedicated function that displays items in the user interface."

It then shows the example code, line 4 in this example code starts with the function "add_item()".

I think it was supposed to use the "display_item()" function.

Once you get into the practice mode, practice 1 is titled "displaying the inventory" and it asks you to display the players inventory on the screen in the exact same way the example showed you. But in the practice screen, it tells you to use the function "display_item()".

This function call "display_item()" was not talked about at all in lesson 25. I think it was supposed to be talked in the code that used the "add_item()" function by mistake.

Another reason I think this is a mistake is because I copied the code in the learning section that used the "add_item()" function and it didn't work as the lesson claimed it should.

@Sorites101 Sorites101 added the content Issues with the lessons, practices, including their code examples label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Issues with the lessons, practices, including their code examples
Projects
None yet
Development

No branches or pull requests

1 participant