0
Why doesn't this code give any output?
Attempting to write a code that gets the modulus of two numbers. Forgive me because I am extremely new to python and just writing this code for practice. def modulo(x,y): if x == 0: print("Critical Error: Cannot Divide by Zero") else: print(x%y)
3 Respostas
+ 1
Mark E
you have to call the method now check it is giving output
https://code.sololearn.com/cjnV0JOTaGHW/?ref=app
0
I think u shoul check if y==0 ,
0
Still no output