Files
pythonProject/variables.py

63 lines
987 B
Python

# this is my first Python program
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!")
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")