0
Can someone pls help me through solving tip calculator in python? I don't get it :(
Can someone pls help
4 ответов
+ 1
bill = int(input())
x=float(20/100*bill)
print (x)
0
It’s not much to go on, but maybe it fair to suppose that if you input a line with a number, a operaror, a number and a equal sign, the code should calculate it?
Do a try an link it here if you get any trouble.
0
Use eval() function instead of int().
All the operator work fine except for single equal to operator, it is illigal statement in python.
0
Thank for the help guys please it means a lot