Number Flashcards

1
Q

Grundrechenarten mit Zahlen.

A

print(5 + 4)
print(5 - 4)
print(5 * 4)
print(5 / 4)

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

Wie funktioniert der Modular Operator?

A

print(10 % 3)
Resultat = 1

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

Funktion absoluter Wert?

A

my_num= -5
print(abs(my_num))

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

Funktion um exponentiell zu rechnen?

A

my_num= 5
print(pow(my_num,2))

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

Funktion für maximal und minimal Werte?

A

my_num= 5
print(max(my_num,2))
Resultat = 5
print(min(my_num,2))
Resultat = 2

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

Funktion um zu runden?

A

my_num= 5.2
print(round(my_num))

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

Funktion um auf und ab zu runden?

A

from math import *
my_num= 5.2
print(floor(my_num)) –> Abrunden
print(ceil(my_num)) –> Aufrunden

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

Funktion für die Quadratwurzel?

A

from math import *
my_num= 5.2
print(sqrt(my_num))

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