Data Types - Different Kinds of Information

Python has different 'types' of data, just like you have different types of containers. String (text) = letters in quotes, Integer (whole number) = numbers without decimals, Float (decimal) = numbers with decimals, Boolean = only True or False. Python automatically knows what type you're using!

# Different data types
name = "Sarah"        # String (text) - always in quotes
age = 30               # Integer (whole number)
temperature = 98.6     # Float (decimal number)
is_raining = False     # Boolean (only True or False)

# Checking data types
type(name)  # This tells you it's a string
type(age)   # This tells you it's an integer

print("Name:", name, "Type:", type(name))
print("Age:", age, "Type:", type(age))