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

13
lecture20261027/if01.py Normal file
View file

@ -0,0 +1,13 @@
# Inputs to the program
length = input("Enter a value for the Length ")
length = float(length)
if length <= 0:
print("Length cannot be negative or zero.")
print("Program terminates here\n")
exit()
print(f"length = {length}")