I don't know what is wrong with it?! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I don't know what is wrong with it?!

def multiply(operator): operator =input('enter the operator u wanna use(*,/)') int_a = input('enter the first number u want to multiply :') int_b = input('rnter the other number you want to multiply :') if operator == "*" : return print('the calculation of',int_a,"*",int_b,"="), print(int(int_a)*int(int_b)) elif operator == "/": return print('the calculation of',int_a,"/",int_b,"="), print(int(int_a)/int(int_b)) else: print("invalid operator!.")

6th Jun 2020, 11:16 AM
omar
0 Answers