Python Tutorial For Beginners-Part - 08 - Keywords in Python

Publié le: 07 août 2018
sur la chaîne: Just Learn Python
89
1

Python Tutorial For Beginners-Part - 08 - Keywords in Python

www.justlearnpython.com


Just Learn Python

Python Tutorial for Beginners

Part-08 -Keywords

Keywords in Python
------------------

Like in any other programming language, Python also has set of keywords which are reserved.

You cannot use the keywords as variable name, function name, class name or any other identifier.


How to get list of keywords of installed Python version ?
---------------------------------------------------------

import keyword

print(keyword.kwlist)

The list may vary from version to version.

What happens if you use a keyword as a variable ?
--------------------------------------------------
Ex:

nonlocal = 20

True = 0

and = "some"






Just Learn Python

All about Python programming,

In this channel you will find videos related various Python programming topics,




Like tutorials, Exercises, code snippets, Projects, tips and tricks of Python,

Python best practices , Python tutorials, Real life examples, coding practices, interview questions.


Sur cette page du site, vous pouvez voir la vidéo en ligne Python Tutorial For Beginners-Part - 08 - Keywords in Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Just Learn Python 07 août 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 89 fois et il a aimé 1 téléspectateurs. Bon visionnage!