0

Can someone pls help me through solving tip calculator in python? I don't get it :(

Can someone pls help

14th May 2021, 9:13 PM
Athenkosi Gqola
Athenkosi Gqola - avatar
4 ответов
+ 1
bill = int(input()) x=float(20/100*bill) print (x)
14th May 2021, 10:22 PM
Dheeraj Sharma
Dheeraj Sharma - avatar
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.
14th May 2021, 10:27 PM
Per Bratthammar
Per Bratthammar - avatar
0
Use eval() function instead of int(). All the operator work fine except for single equal to operator, it is illigal statement in python.
14th May 2021, 11:56 PM
Dheeraj Sharma
Dheeraj Sharma - avatar
0
Thank for the help guys please it means a lot
16th May 2021, 8:47 PM
Athenkosi Gqola
Athenkosi Gqola - avatar