0

Guys,i dont understand how do the Tip Calculator in Python for Begginers

I know how do,but this challenge have multiple aswers and im confuse :(

2nd May 2021, 2:33 PM
Katdotbrush
Katdotbrush - avatar
8 Réponses
+ 2
Use the input function
2nd May 2021, 3:40 PM
Scarlet Witch
Scarlet Witch - avatar
0
You have to read input and calculate output from that. Input will be given automatically when running test cases
2nd May 2021, 3:14 PM
Benjamin Jürgens
Benjamin Jürgens - avatar
0
Trying, and trying again makes it happen.
2nd May 2021, 3:28 PM
zxtychj
zxtychj - avatar
0
Bejamin Jürgens but i dont understand yet 🤔,i tried use two inputs and it caused an error
2nd May 2021, 4:09 PM
Katdotbrush
Katdotbrush - avatar
0
You don't have to use two inputs, just use one, when you will run input will be given
2nd May 2021, 4:11 PM
Scarlet Witch
Scarlet Witch - avatar
0
Scarlet Witch But when i put an number valvue it causes an error too
2nd May 2021, 4:15 PM
Katdotbrush
Katdotbrush - avatar
0
Don't put a number value use a input function, like: bill = input()
2nd May 2021, 4:17 PM
Scarlet Witch
Scarlet Witch - avatar
0
cat cute you should have only one number in your code for the 20% tip. Can be given as 20/100 or 0.2 or 1/5. If you look at the number from test cases and use those in your code, you are doing it wrong. Use int(input()) instead of those numbers and your code will get the numbers for each test case automatically
2nd May 2021, 4:32 PM
Benjamin Jürgens
Benjamin Jürgens - avatar