N

None

 

Nyckelord

Beskrivning: None representerar avsaknaden av ett värde.

Exempel:

>>> def f(x):

x

>>> print(f(2))

None

y N

 

[a A #]

nonlocal

 

Nyckelord

Syntax: nonlocal

Beskrivning: Använd nonlocal för att deklarera en variabel som inte är lokal. Se Python-dokumentationen för mer information.

y N

 

not

 

Nyckelord

Syntax: not x

Beskrivning: Evaluerar till True om x är False och annars till False. Klistras in med mellanslag före och efter keyword not . Redigera efter behov.

Exempel:

>>> not 2<5 #edit the space before not

False

>>>3<8 and not 2<5

False

y : Ops 0:not

 

[Fns…] > Ops 0:not

 

y N

 

[a A #]