# Variables and Data Types

name = "ChapStick"    # looks like a string of characters
quantity = 2          # looks like an integer       
price = 1.99          # looks like a decimal value

price = 2.99              # the value of price changes from 1.99 to 2.99
total = price * quantity  # a new variable total gets value 5.98
print("Total cost:", total)

prices = [5.99, 3.49, 12.50]
print("\nPrinting the whole list of prices:")
print(prices)
print("\nThese are the prices of the items in the list:")
for price in prices:
    print(price)

# Mixing data types
value1 = 10 + 15
value2 = "10" + "15"
print("\nData types are inferred based on the values assigned to the variables.\n")
print("Value 1:", value1)
print("Value 2:", value2)

print("\nAn interesting, but infrequently used, Python feature:")
total = 5 * "Happy"
print(total)
