How do I allow someone to enter a float integer with a "$" in front of the value. For example, they could enter "$4.25" and also they could enter "4.25".
Also, when I enter "4.35" into my calculator the tip comes out as "0.6". On a calculator I own at home it comes out as 0.6525. How do I get the whole answer?
input ('Please Enter to begin')
while True:
print('This calculator will display the tip you owe for your meal price.')
mealPrice = int(float(input('Enter your meal price:')))
asw = mealPrice * 0.15
print('The tip you owe is: $',asw)
endProgram = input ('Do you want to restart the program?')
if endProgram in ('no', 'No', 'NO', 'false', 'False', 'FALSE'):
break