0

How to give two diffrent outputs for tip calculator in python project

I am unable to give two different outputs in same program There are two test cases I am not able to give the answer for both at same time

8th Apr 2021, 2:37 PM
Anshul Sharma
Anshul Sharma - avatar
5 ответов
+ 6
You need to use input function
8th Apr 2021, 3:01 PM
Scarlet Witch
Scarlet Witch - avatar
+ 3
Anshul Sharma here you go... bill = int(input()) print(bill*20/100
12th Apr 2021, 3:13 PM
Scarlet Witch
Scarlet Witch - avatar
+ 2
Where your code?
8th Apr 2021, 2:42 PM
Илья Мирошник
Илья Мирошник - avatar
+ 2
#Acts like a vacuum for user to input the bill amount bill = int(input()) x = 20 #tip percentage y = 100 #overrall percentage #calculates the tip amount tip = (bill * int(x))/int(y) print(float(tip))
25th Apr 2021, 9:47 AM
Jackson Kairani Maina
Jackson Kairani Maina - avatar
0
Scarlet Witch the tip calculator in python for beginners
12th Apr 2021, 11:41 AM
Anshul Sharma
Anshul Sharma - avatar