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)

9th Apr 2020, 5:32 PM
Mark E
Mark E - avatar
3 Respostas
+ 1
Mark E you have to call the method now check it is giving output https://code.sololearn.com/cjnV0JOTaGHW/?ref=app
9th Apr 2020, 5:46 PM
Muhammad Bilal
Muhammad Bilal - avatar
0
I think u shoul check if y==0 ,
9th Apr 2020, 5:40 PM
ionuț cosmin
ionuț cosmin - avatar
0
Still no output
9th Apr 2020, 5:44 PM
Mark E
Mark E - avatar