+ 1
Not a problem. Sometimes providing solution isn't great
0
Can you provide full task explanation, and also can you share your code and say where you struggle, so we can help?
0
20% is 0.2 in decimal. So, I would use it as a percentage multiplier to find 20% of the whole amount
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
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
0
dinero_lol=int(input())
propina=((20/100)*dinero_lol)
print(propina)