+ 1
Not a problem. Sometimes providing solution isn't great
19th Jan 2023, 10:00 AM
Lamron
Lamron - avatar
0
Can you provide full task explanation, and also can you share your code and say where you struggle, so we can help?
19th Jan 2023, 8:30 AM
Lamron
Lamron - avatar
0
20% is 0.2 in decimal. So, I would use it as a percentage multiplier to find 20% of the whole amount
19th Jan 2023, 8:45 AM
Lamron
Lamron - avatar
0
You need to find 20% of the amount. To find 20% of something, you need to multiply it by 0.20 0.20 = 20% If you multiple a number by 0.20 you will get 20% of that amount
19th Jan 2023, 9:02 AM
Lamron
Lamron - avatar
0
bill = int(input("Enter your bill: ") tip = 0.2 * amount print(f"Your tip is: {tip}") Output: Enter your bill: 125 Your tip is: 25.0
19th Jan 2023, 1:36 PM
Chuks AJ
Chuks AJ - avatar
0
dinero_lol=int(input()) propina=((20/100)*dinero_lol) print(propina)
21st Jan 2023, 3:16 AM
Catherine Echemendia HernĂĄndez
Catherine Echemendia HernĂĄndez - avatar