Added code for lecture 2026-11-10

This commit is contained in:
Edward Bigos 2026-11-10 12:28:09 -05:00
commit 07b9e54bf0
52 changed files with 1248 additions and 1 deletions

View file

@ -0,0 +1,27 @@
# if statement example
if 22 > 7:
print("22 is greater than 7")
print("A better method to define the code ...")
# Use variables in the if statement and print
data1 = 22
if data1 > 7:
print(f"{data1} is greater than 7")
# Or this form
print("And another method to define the code ...")
data1 = 22
data2 = 7
if data1 > data2:
print(f"{data1} is greater than {data2}")
print("Program ended")