Python Tutorial v3.2.5 Lesson 24.2 - Adding a Random Item Search

Veröffentlicht am: 29 September 2014
auf dem Kanal: Programming Tutorials by Steve
641
9

1:36 Skip the Introduction to Lesson 24.2
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.2.

Lesson 24.2 continues the development of the small, text-based game initially developed in Lesson 24.1. In this video, we'll import the random function to add some randomness to the game, then redesign the function that adds items to the player's inventory. Now, instead of only being able to pick up rocks, the user has a chance to find a dagger and a shield, as well. We also modify our check inventory function to properly display the shield and the dagger if the player found such an item.

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.

You can download a copy of Python from http://www.python.org/downloads/.

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.


Auf dieser Seite können Sie das Online-Video Python Tutorial v3.2.5 Lesson 24.2 - Adding a Random Item Search mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Programming Tutorials by Steve 29 September 2014 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 641 Mal angesehen und es wurde von 9 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!