Python Tutorial v3.2.5 Lesson 22.3 - Adventure Game String Methods (1 of 2)

preview_player
Показать описание
1:36 Skip the introduction to Lesson 22.3
5:21 Skip to the inclusion of 'quit' as a recognized word.
11:42 Skip to the inclusion of 'look' as a recognized word.
14:09 Skip to the inclusion of 'look' target words.
There is no challenge program for Lesson 22.3

Lesson 22.3 takes many of the string methods introduced in Lessons 22.1 and 22.2 and applies them to the creation of a small adventure game. While the game shown has no plot, it provides an example of how to get Python to recognize individual words from a complete sentence of input. In particular, this example demonstrates the use of the word 'quit', 'look', and 'eat.' Furthermore, the 'look' command is expanded to have the user be able to look at a specific tree. This video is part 1 of a 2 part series. Part 2 will expand on these concepts.

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.
Рекомендации по теме
visit shbcf.ru