From 0f8813e69ac5b5006075558c85c630f677fe75f7 Mon Sep 17 00:00:00 2001 From: breadmilc Date: Thu, 23 Oct 2025 09:59:04 -0500 Subject: [PATCH] learned all types of variables and integrated them into my code --- main.py | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 3025793..49e118d 100644 --- a/main.py +++ b/main.py @@ -2,6 +2,62 @@ first_name = "bread" last_name = "milc" favorite_food = "67 shaped pizza" +email = "bread@123fake.com" print(f"hello {first_name}") print(f"I like {favorite_food}") -print("It's really good!") \ No newline at end of file +print("It's really good!") +print(f"my email is: {email}") + + +# integers +age = 67 +quantity = 3 +num_of_students = 30 + +print(f"I am {age} years old") +print(f"I am buying {quantity} items") +print(f"theres a school bus of {num_of_students} kids!") + + + + +# float +price = 10.99 +gpa = 6.7 +distance = 5.5 + + +print(f"The price of this dubai chocolate is ${price}") +print(f"My gpa is: {gpa}") +print(f"Leonardo ran {distance} miles") + + + + +# boolean + + +is_student = False +for_sale = True +is_online = True + + +if is_student: + print("You are a student, Leonardo!") +else: + print(f"You are NOT a student, Leonardo.") + + + + +if for_sale: + print("That item is for sale") +else: + print("That item isnt for sale") + + + +if is_online: + print("breadmilc is online") +else: + print("breadmilc is offline") \ No newline at end of file