Python

Python syntax and operators

Python syntax and operators


Kartei Details

Karten 22
Sprache English
Kategorie Informatik
Stufe Andere
Erstellt / Aktualisiert 15.12.2020 / 12.02.2025
Weblink
https://card2brain.ch/box/20201215_python_operators
Einbinden
<iframe src="https://card2brain.ch/box/20201215_python_operators/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>

Equal to

==

Not equal to

Nicht gleich wie

!=

Less than

Weniger als

<

Greater than

Grösser als

>

Less than or equal to

Weniger als oder gleich

<=

Greater than or equal to

Grösser als oder gleich wie

>=

True and True

True

True and False

False

False and True

False

False and False

False

True or True

True

True or False

True

False or True

True

False or False

False

Boolean operators

And, or, not

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

break

What keyboard shortcut interrupts an infinite loop?

Ctrl-C

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

continue

What loops are existing in Python?

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

Range

Aus was bestehen Attribute einer Klasse?

Aus was bestehen die Methoden einer Funktion?