Goal: Understand and use different data types in Python.
Instructions:
Create the following variables:
item_name as a string (e.g., "Tablet")
item_price as a float (e.g., 249.99)
is_available as a boolean (True/False)
Print the values of all three variables in a single sentence.
Expected Outcome: Learners should combine variables into a coherent output like: "Tablet costs $249.99 and is available: True".
Python Code:
item_name = "Tablet"
item_price = 249.99
is_available = True
print(item_name,"costs $",item_price,"and is available:",is_available)