Python Tutorial 2016 Lesson 2.1 - For Loops and time.sleep() for String Printing

Опубликовано: 25 Февраль 2026
на канале: Programming Tutorials by Steve
1,693
11

Lesson 2.1 takes the for loop and pairs it with the time.sleep() function in order to create small delays as characters are printed on the screen. By doing so, programmers can create more tension and style in the way text is displayed in text based adventure games using Python.

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 supports v3.2.5 only.