+ 1

What's wrong with this code cuz I want to find 20% of 50

Bill = (50 * 20) /100 Print(float(bill))

31st Mar 2021, 1:42 PM
Awasum Promise
Awasum Promise - avatar
5 Answers
+ 6
Python is a case sensitive language . But in ur code in line 1 u have written ( Bill) but in line 2 u have written ( bill) which will cause an error. And u have written P of print in capital but it will be in small letters. Correct one : Bill = (50 * 20) /100 print(float(Bill))
31st Mar 2021, 1:47 PM
KǟrÉšsÉŠmǟ ❄
KǟrÉšsÉŠmǟ ❄ - avatar
+ 4
https://code.sololearn.com/cqmz4IVeV63q/?ref=app See here is code which includes the changes. And it's working without an error
31st Mar 2021, 1:57 PM
KǟrÉšsÉŠmǟ ❄
KǟrÉšsÉŠmǟ ❄ - avatar
+ 1
Undefined variable in line 2
31st Mar 2021, 1:53 PM
Awasum Promise
Awasum Promise - avatar