Python Tip Calculator Code


name = input("Sup!  What are your rights ? ") #this is to ask what are your right (which is your name)
print(f"Hello {name}! Welcome to Cookholds diner tip calculator.")#this is to say hello and welcome 

cost = float(input("What is the cost of the meal? "))#this is to ask how much is your meal 
tip = cost * 0.2#this is to calulate the cost time the tip

print(f"The cost of the meal is ${cost:.2f}.")#This is to format it so it goes after meal 
print(f"A 20% tip would be ${tip:.2f}.")#this is to format so it goes after tip
print("Thank you for using Cookholds tip calculator. Have a good day!")# this is my end statement to say have a good day