Welcome to Chapter 2: Variables! Variables are like labeled boxes 📦 that store information.
💡 Think of it like this: Imagine you have a box labeled "age" and you put the number 10 inside it. That's a variable! You can look at what's in the box anytime, or change what's inside.
Python has these main data types:
'hello'42, -7, 03.14, 99.9True or FalseYou can check what type something is using type():
name = 'Rex' # A string (text) age = 10 # An integer (whole number) height = 4.5 # A float (decimal number) is_cool = True # A boolean (True or False)