Logik (Python) Flashcards

1
Q

Logisches gleich

Prüfe ob a gleich b ist.

A

a == b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Logisches ungeleich

Prüfe ob a ungleich b ist.

A

a != b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Logisches kleiner

Prüfe ob a kleiner b ist.

A

a < b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Logisches kleiner gleich

Prüfe ob a kleiner gleich b ist

A

a <= b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Logisches größer

Prüfe ob a größer als b ist

A

a > b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Logisches größer gleich

Prüfe ob a größer gleich b ist.

A

a >= b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Logisches Und

Verknüpfe a und b mit einem logischem und

A

a and b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Logisches Oder

Verknüpfe a und b mit einem logischem oder

A

a or b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Logisches nicht

Kehre das Ergebnis des Ausdruckes a<b um

A

not (a < b)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Operatorenreihenfolge

Wie lautet die Operatorenreihenfolge

A

Klammer
Potenzen
Vorzeichen
Punkt
Strich
Vergleichoperatoren
logische Operatoren
bedingte Ausdrücke
Zuweisungsausdrücke

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Mathematische Operatoren

b-te Potenz von a

A

a ** b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Mathematische Operatoren

Prdoukt von a und b

A

a * b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Mathematiische Operatoren

Quotient von a und b

A

a / b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Mathematische Operatoren

Rest bei ganzzahliger Divesion von a durch b

A

a % b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Mathematische Operatoren

ganzzahlige Division von a und b

A

a // b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Mathematische Operatoren

Matrizenmultiplikation von a und b

A

a @ b

17
Q

Vergleichsoperatoren

Prüfe ob a und b die gleiche Identität haben

A

a is b

18
Q

Vergleichoperatoren

Prüfe ob a und b nicht die gleiche Identiät haben

A

a is not b

19
Q

Vergleichsoperatoren

Prüfe ob a eine Teilmenge von b ist

A

a in b

20
Q

Vergleichsoperatoren

Prüfe ob a keine Teilmenge von b ist

A

a not in b