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")

11th Apr 2022, 10:39 AM
Zanele
Zanele - avatar
2 odpowiedzi
+ 1
Yes, and you are missing a closing bracket on line 6th (after num1+num2)
11th Apr 2022, 10:40 AM
NEZ
NEZ - avatar
0
Thank you for the help
11th Apr 2022, 11:13 AM
Zanele
Zanele - avatar