Initial commit
This commit is contained in:
commit
d581a32e99
5 changed files with 655 additions and 0 deletions
39
script.py
Normal file
39
script.py
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
#this is my first Python program
|
||||
print("I like feet!")
|
||||
print("it's really good")
|
||||
first_name = "Vojta"
|
||||
print(first_name)
|
||||
print(f"loves feet {first_name}")
|
||||
food = "feet"
|
||||
print(f"{first_name} loves {food}")
|
||||
email = "lovesfeet@vojta.com"
|
||||
print(f"{first_name} has an email adress {email}")
|
||||
age = 14
|
||||
quantity = 2
|
||||
print(f"you are {age} years old")
|
||||
print(f"you are buying {quantity} {food}")
|
||||
num_of_students = 30
|
||||
print(f"your class has {num_of_students} students")
|
||||
price = 100
|
||||
print(f" the price is {price}czk")
|
||||
gpa = 4.0
|
||||
print(f" the GPA is {gpa}")
|
||||
distance = 5.5
|
||||
print(f" the distance is {distance}km")
|
||||
is_student = True
|
||||
for_sale = False
|
||||
|
||||
print(f" are you a student? {is_student}")
|
||||
if is_student:
|
||||
print("you are a student")
|
||||
else:
|
||||
print("you are not a student")
|
||||
|
||||
if for_sale:
|
||||
print("not for sale")
|
||||
else:
|
||||
print(" for sale")
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue