0
Hey guys, do I put"==" instead of "=" and do I need to indent anything, if you see any other problem, pls free to correct me.
num1 = float(input("put your float:")) operator=input("put your operator:") num2= float(input("put your float:")) if operator = "+": print(num1 + num2 if operator = "-": print(num1-num2) if operator = "*": print(num1*num2) if operator = "/": print(num1/num2) else: print("error")
2 Respuestas
+ 1
Yes, and you are missing a closing bracket on line 6th (after num1+num2)
0
Thank you for the help