charge = float(input("Enter the cost of the meal: $"))
tip = charge*0.2
tax = charge*0.06
print("A 20% tip would be: $"+str(tip))
print("A 6% sales tax would be: $"+str(tax))
print("The total would be: $"+str(charge+tip+tax))
I wrote my code in python 3.8. I hope this helps.