- 5

how can I solve project tip calculator?

I wrote bill=float(input(20%)) print (bill) but is showing invalid syntax on line 1

18th Nov 2021, 10:44 AM
Drish Patel
6 Respostas
+ 4
By writing your logic, and please post your code if you stuck in your code.
18th Nov 2021, 11:00 AM
Rupali Haldiya
Rupali Haldiya - avatar
+ 1
Drish Patel That's just an input. Apply 20% on that input and print resultant value.
18th Nov 2021, 12:33 PM
A͢J
A͢J - avatar
+ 1
thank you
18th Nov 2021, 12:33 PM
Drish Patel
+ 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.
18th Nov 2021, 12:43 PM
A͢J
A͢J - avatar
+ 1
ok ,thanks that time I was confused
18th Nov 2021, 1:17 PM
Drish Patel
+ 1
AJ-SoloHelper you're an Indian and I'am also an Indian
9th Dec 2021, 4:54 AM
Drish Patel