- 5
how can I solve project tip calculator?
I wrote bill=float(input(20%)) print (bill) but is showing invalid syntax on line 1
6 Respostas
+ 4
By writing your logic, and please post your code if you stuck in your code.
+ 1
Drish Patel
That's just an input. Apply 20% on that input and print resultant value.
+ 1
thank you
+ 1
Drish Patel
Yes because that is invalid.
I said apply 20% on input so it should be
print (bill * 20 / 100)
This is just a simple math.
+ 1
ok ,thanks that time I was confused
+ 1
AJ-SoloHelper you're an Indian and I'am also an Indian