S
S
sazer2021-02-01 17:12:04
Python
sazer, 2021-02-01 17:12:04

How to fix the error - "ZeroDivisionError: Inverse of Mod(0,2) does noet exist"?

Hello.

Code description:

6018143b79b65289867938.jpeg

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 question

Ask a Question

731 491 924 answers to any question