Python

Python syntax and operators

Python syntax and operators


Fichier Détails

Cartes-fiches 22
Langue English
Catégorie Informatique
Niveau Autres
Crée / Actualisé 31.01.2025 / 02.03.2025
Lien de web
https://card2brain.ch/box/20250131_python
Intégrer
<iframe src="https://card2brain.ch/box/20250131_python/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>

Aus was bestehen die Methoden einer Funktion?

Aus was bestehen Attribute einer Klasse?

What command let's you execute a for loop for an exact number of times?

Range

What loops are existing in Python?

What statement causes the execution to immediately jump back to the start of the loop and re-check the condition?

continue

What keyboard shortcut interrupts an infinite loop?

Ctrl-C

What statement causes the execution to immediately leave the loop, without re-checking the condition?

break

Boolean operators

And, or, not

False or False

False

False or True

True

True or False

True

True or True

True

False and False

False

False and True

False

True and False

False

True and True

True

Greater than or equal to

Grösser als oder gleich wie

>=

Less than or equal to

Weniger als oder gleich

<=

Greater than

Grösser als

>

Less than

Weniger als

<

Not equal to

Nicht gleich wie

!=

Equal to

==