Added Homework 04 - Strings

This commit is contained in:
Edward Bigos 2026-11-03 10:54:55 -05:00
commit be356ccb59
24 changed files with 315 additions and 0 deletions

View file

@ -0,0 +1,14 @@
import math
variable = 10
print(f"Using Numeric {variable = }")
print(f"This prints without formatting {variable}")
print(f"This prints with formatting {variable:d}")
print(f"This prints also with formatting {variable:n}")
print(f"This prints with spacing {variable:10d}\n")
variable = math.pi
print(f"Using Numeric {variable = }")
print(f"This prints without formatting {variable}")
print(f"This prints with formatting {variable:f}")
print(f"This prints with spacing {variable:20f}")