Reserved Keywords in Python - Python Tutorial for Beginners

preview_player
Показать описание
🎓 Welcome back to Digital Academy, the Complete Python Development Tutorial for Beginners, which will help you Learn Python from A to Z!

🖥️ Reserved Keywords in Python 3 and Uses.

There is one more restriction, on identifier names. The Python language reserves a small set of keywords that designate special language functionality. No object can have the same name, as a reserved word.

In Python 3, there are currently 33 reserved keywords, as described in this table. You can see this list any time, by typing help("keywords") to the Python interpreter. Reserved words are case-sensitive, and must be used exactly as shown. They are ALL entirely lowercase, except for: False, None, and True. Trying to create a variable with the same name as any reserved word results in a error: SyntaxError.

Python Keywords
False | def | if | raise
None | del | import | return
True | elif | in | try
and | else | is | while
as | except | lambda | with
assert | finally | nonlocal | yield
break | for | not
class | from | or
continue | global | pass

Let's play this video, stick around and watch until the end of this video! 👍🏻

- Digital Academy™ 🎓

***

☞ WATCH NEXT:

#Python #Tutorial #Beginners #Shorts

***

♡ Thanks for watching and supporting ♡
Please Subscribe. Hit the notification bell.
Like, Comment and Share.

***

♡ FOLLOW US ♡

♡ SUPPORT US ♡

***
Рекомендации по теме
Комментарии
Автор

Did you know ALL reserved keywords in Python 3, or only some of them? 🤔

DigitalAcademyOnline
join shbcf.ru