Question: while Valid: cost = float(input(Enter a thing cost: )) charge = cost * 0.07 absolute = cost + charge print(Tax on this thing is, charge,
while Valid: cost = float(input("Enter a thing cost: ")) charge = cost * 0.07 absolute = cost + charge print("Tax on this thing is", charge, "; absolute cost:", complete) another = input("Enter another cost? (indeed or no): ") if another.lower() == "no": break I get this error while Valid: NameError: name 'Valid' is not defined. What do i have to do? this is in python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
