Python Tutorial v3.2.5 Lesson 24.1 - Simple Game Development Using Lists

preview_player
Показать описание
1:21 Skip the Introduction to Lesson 24.1
4:55 Example of a function that adds items to an inventory.
7:40 Example of a function that checks the items in an inventory.
12:15 Example of a function that uses items in an inventory.
The is no Challenge Program for Lesson 24.1.

Lesson 24.1 shows the start of development on a small, text-based game that uses lists to keep track of a player inventory. Using the .append(), .pop(), and .count() methods, the program allows the user to gather rocks, count the number of rocks in their inventory, then throw rocks into the distance. No additional functionality is addressed in this video.

This is an introductory series of Python tutorials. This course, from start to finish, is designed to help someone who has never programmed before learn the basics of coding in Python. As this series continues, we examine more advanced Python techniques, functions, and methods.

Keep in mind this tutorial is using an older version of Python, v3.2.5. You will need to click on the "View Older Releases" button to use this specific version. Using the newer versions will not be an issue at this point, but when the lesson proceeds to basic graphics, the Pygame Module we'll use does not support v3.3+ at this time.
Рекомендации по теме