We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec21ce8 commit 32c0438Copy full SHA for 32c0438
1 file changed
Level_05/Beispielcode/calculator05.py
@@ -100,7 +100,7 @@ def quotient():
100
"""
101
divid = input("Bitte den Dividenden eingeben: ")
102
divis = input("Bitte den Divisor eingeben: ")
103
- if int(divis) == 0:
+ if float(divis) == 0.0:
104
print("Ungültige Divisor.")
105
return
106
result = float(divid) / float(divis)
@@ -116,7 +116,7 @@ def modulo():
116
117
118
119
120
121
122
result = int(divid) % int(divis)
0 commit comments