0
TIP CALCULATOR
Hi. I stucked on project "Tip Calculator". I can't understand how i can transfer lines to the second test. This is my code. Result be like: Test 1 ✓. Test 2 X. Test 3 X. fee="125" tip = int(fee)*20/100 print(float(tip))
1 Odpowiedź
+ 3
xintreaa
Take fee as input don't write Hard code value because inputs maybe different for different test cases.
fee = input ()
And also no need to cast with float because / by default convert to float
print(tip)