Answer the question
In order to leave comments, you need to log in
How to fix the error - "ZeroDivisionError: Inverse of Mod(0,2) does noet exist"?
Hello.
Code description:
I made the code, it gives an error in line 65. link to the code - https://pastebin.com/WQJ4gbcL
code piece where the error is:
elif (m % 2 == 0):
return successiveSquare(m/2, double(P , E), E)
Error text - ZeroDivisionError: Inverse of Mod(0,2) does noet exist.
As I understand it, you need to fix the type of variables or something else that would work normally, but I can’t figure out how to do this.
Thank you all very much for your help!!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question