Python Class 6

Veröffentlicht am: 17 September 2024
auf dem Kanal: Training Traveller
66
1

Python has 35 keywords or reserved words; they cannot be used as identifiers.[3][4]

and
as
assert
async[note 1]
await[note 1]
break
class
continue
def
del
elif
else
except
False[note 2]
finally
for
from
global
if
import
in
is
lambda
None
nonlocal[note 3]
not
or
pass
raise
return
True[note 2]
try
while
with
yield
In addition, Python also has 3 soft keywords. Unlike regular hard keywords, soft keywords are reserved words only in the limited contexts where interpreting them as keywords would make syntactic sense. These words can be used as identifiers elsewhere; You can define a function or variable named match or case.[6][7]

_[note 4]
case[note 4]
match[note 4]
Notes
async and await were introduced in Python 3.5.[5]
True and False became keywords in Python 3.0. Previously they were global variables.
nonlocal was introduced in Python 3.0.
match, case and _ were introduced as keywords in Python 3.10.


Auf dieser Seite können Sie das Online-Video Python Class 6 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Training Traveller 17 September 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 66 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!