Why is python so hard? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Why is python so hard?

is it because i think to much into it or is it just to hard likprint((17 + 94) / (-5 +_______)) how do u do the ZeroDivisionError?

21st Sep 2020, 3:37 PM
Teaghan Hart
Teaghan Hart - avatar
3 Antworten
+ 1
Whenever you divide a number by 0, python spits this ZeroDivisionError. print((17+94)/(-5+5)) = print(111/0) = ZeroDivisionError. Your print statement is fine for every number except 5 in this case (-5 + 5 = 0)
21st Sep 2020, 3:43 PM
Rohit
+ 2
Right side of the division must be zero no matter the left side number is the result will be error zerodivisionerror .
21st Sep 2020, 4:42 PM
HBhZ_C
HBhZ_C - avatar
0
i still dont get it
21st Sep 2020, 4:54 PM
Teaghan Hart
Teaghan Hart - avatar