Learn Python
1. variables ❎ A container for a value (string, integer, float, boolean) A variable behaves as if it was the value it contains # Strings first_name = "Bro" food = "pizza" email = "Bro123@gmail.com" print(f"Hello {first_name}") print(f"You like {food}") print(f"Your email is: {email}") # Integers age = 25 quantity = 3 num_of_students =30 print(f"You are {age} years old") print(f"You are buying {quantity} items") print(f"You class has {num_of_students} students") # Float price = 10.99 gpa = 3.2 distance = 5.5 print(f"The price is ${price}") print(f"Your gpa is: {gpa}") print(f"You ran {distance}km") # Boolean is_student = False for_sale = False is_online = True if is_online: print("You are online") else: print("You are offline") Variable assignments ...