Lecture 11/17/2026

This commit is contained in:
Edward Bigos 2026-11-17 12:30:27 -05:00
commit bf3265103a
44 changed files with 1195 additions and 3 deletions

View file

@ -0,0 +1,32 @@
program01 = '''
Program: if01
This program demonstrates the conditional tests used in Python.
'''
print(program01)
a = 4
b = 7
c = 7
print(f"a = {a}\nb = {b}\nc = {c}\n")
print(f"a == b {a==b}")
print(f"a != b {a!=b}")
print(f"a < b {a<b}")
print(f"a <= b {a<=b}")
print(f"a > b {a>b}")
print(f"a >= b {a>=b}")
print("\n")
print(f"c == b {c==b}")
print(f"c != b {c!=b}")
print(f"c < b {c<b}")
print(f"c <= b {c<=b}")
print(f"c > b {c>b}")
print(f"c >= b {c>=b}")