You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: