Lecture code 10/27/2026

This commit is contained in:
Edward Bigos 2026-10-27 13:30:41 -04:00
commit aad4e226c5
7 changed files with 152 additions and 0 deletions

View file

@ -0,0 +1,22 @@
print("\nThis program demonstrate nest if\n")
print("Insure both values > 0, preferred method")
data1 = 7
data2 = 3
print(f"data1 = {data1}, data2 = {data2}")
if data1 <= 0 or data2 <=0:
print("ERROR: data1 and data2 must greater than zero")
exit()
print("Done")