I am learning Python and I have problems with data types convertions. When I run the program it says: "Can't convert 'float' object to str implicitly". I'm using the latest version of Python by the way.
I am just trying to make basic math operations.
Here's my code:
Quantity=input("PLEASE INSERT NUMBERS OF SHIRTS TO BUY:\n")
Tax=0.12
Price = 100*Quantity
Total = Price + Tax
float(Quantity)before using it.Taxis a float so it can't be added to the Price string without converting it first -Total = Price + str(Tax)sayquantity= float(input("PLEASE INSERT NUMBERS OF SHIRTS TO BUY:\n"))