Feb-03-2020, 07:51 AM
try this to see if helps,
Sandeep
GANGA SANDEEP KUMAR
first_name = input ("What is the servers name? ") price_meal = float(input("What is the check amount? ")) tip_p = float(input("Tip Percent? ")) tip=price_meal*(tip_p/100) price_meal = price_meal + tip print(f'Your total cost is {price_meal:.2f}.')
Output:python test1.py
What is the servers name? abc
What is the check amount? 20
Tip Percent? 50
Your total cost is 30.00.
Best Regards,Sandeep
GANGA SANDEEP KUMAR