0
In Python your code would look like this: price = int(input()) if price >= 70000: print('20 % discount') elif price >= 50000: print('10 % discount') else: print('No Discount')
11th Jul 2022, 3:02 PM
Ervis Meta
Ervis Meta - avatar
+ 1
The reason that that code doesn't work is that you are not using the Python 3 syntax for writing, as it should.
11th Jul 2022, 2:33 PM
Ervis Meta
Ervis Meta - avatar
0
Ervis Meta - SoloHelper Pls don't give finished code as answer, because it makes the OP skip the most important part of learning. Instead, prefer giving hints for the OP to find the solution.
12th Jul 2022, 12:13 AM
Emerson Prado
Emerson Prado - avatar