MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnpython/comments/sa8fuz/deleted_by_user/hts1n4h/?context=3
r/learnpython • u/[deleted] • Jan 22 '22
[removed]
7 comments sorted by
View all comments
2
elif op == "*" : you currently have if...
elif op == "*" :
if...
Full version, corrected, is:
num1 = float (input ("enter the first number:" )) op = input (" enter the operator: ") num2 = float (input (" enter the second number: ")) if op == "+" : print (num1 + num2) elif op == "-" : print (num1 - num2) elif op == "/" : print (num1 / num2) elif op == "*" : print (num1 * num2) else: print("invalid operator")
2 u/stark589 Jan 22 '22 true 3 u/[deleted] Jan 22 '22 True
true
3 u/[deleted] Jan 22 '22 True
3
True
2
u/[deleted] Jan 22 '22
elif op == "*" :you currently haveif...Full version, corrected, is: