CodeSolved

Solved Programming Questions & Exercises

Zerodivisionerror error in Python

Technical question 2039/ Download 102 Views
Hi, I performed this code but it did. What is the reason? How should I make it?
a = 10
b = 0
print(a / b)

ZeroDivisionError: division by zero

4 Answers

Hi Python does not divide any numbers by 0 you encounter a Division Zero error error If you are just going to print numbers you should use: (A, B) Print Dear friend
Anonymous Download Python
Because it won't be divided by zero if zero is made.
User 4141 Download
This error means you are dividing a number by zero !!!! This cannot be done because it is one of the defined in mathematics. No zero numbers are divided, change that number.
Mohammad.mahdi88 Download
Because for the system and ... the number is not defined by zero.
User 1496 Download

Submit answer

Submitting answers is currently unavailable.

×
×
Close