N

None

 

Schlüsselwort

Beschreibung: „None“ stellt das Fehlen eines Wertes dar.

Beispiel:

>>> def f(x):

x

>>> print(f(2))

None

y N

 

[a A #]

nonlocal

 

Schlüsselwort

Syntax: nonlocal

Beschreibung: Verwenden Sie „nonlocal“, um festzulegen, dass eine Variable nicht lokal ist. Weitere Einzelheiten finden Sie in der Python-Dokumentation.

y N

 

not

 

Schlüsselwort

Syntax: not x

Beschreibung: Wertet als True aus, wenn x False ist, anderenfalls als False. Wird mit Leerzeichen vor und hinter dem Schlüsselwort „not“ eingefügt. Kann nach Bedarf bearbeitet werden.

Beispiel:

>>> not 2<5 #Bearbeiten Sie das Leerzeichen vor „not“

False

>>>3<8 and not 2<5

False

y : Ops 0:not

 

[Fns…] > Ops 0:not

 

y N

 

[a A #]