+ 2

What's wrong here?

bill=int(input()) x=20 y=100 tip =(bill*20/100) print=(tip)

18th Feb 2022, 10:41 AM
Essien Bukola
Essien Bukola - avatar
2 ответов
+ 1
------------------ bill = int(input()) x = 20 y = 100 tip = bill * x/y print(tip) ------------------ Notes: - When you declare a variable (x & y), you need to use it instead of keeping it in your code. Instead of writing "20 / 100" write "x / y". - Whenever you're using a function, do not use "=" just write the function, open parentheses and write your parameters.
18th Feb 2022, 10:53 AM
Carbon
Carbon - avatar