Python Tutorial v3.2.5 Lesson 22.2 - Boolean String Methods

Publié le: 09 août 2014
sur la chaîne: Programming Tutorials by Steve
1,175
11

1:43 Skip the introduction to Lesson 22.2
7:11 Skip to an example of using .startswith() and .endswith()
11:09 Skip to an example of combining multiple string methods (in this case, .lower() and .startswith('x')
There is no challenge program for Lesson 22.1

Lesson 22.2 continues investigating the use of many of the string methods available in Python. In particular, we are going to evaluate Boolean String Methods. These are string methods that will return either a True or False. Examples of .isalpha(), .isnumeric(), .startswith('x'), and .endswith('x') are provided. Examples of how some of these methods can be combined in a user defined function that asks a user if they wish to continue playing are also shown.

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.


Sur cette page du site, vous pouvez voir la vidéo en ligne Python Tutorial v3.2.5 Lesson 22.2 - Boolean String Methods durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Programming Tutorials by Steve 09 août 2014, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,175 fois et il a aimé 11 téléspectateurs. Bon visionnage!