""" Exercise 2.1 from "A primer on..." """ print('------------------') # table heading F = 0 dF = 10 while F <= 100: # loop heading with condition C = (5/9) * (F - 32) print(f"{F:6.2f}, {C:6.2f}") #f-string for nicer formatting F = F + dF print('------------------') # end of table line """ Terminal> python f2c_table_while.py ------------------ 0.00, -17.78 10.00, -12.22 20.00, -6.67 30.00, -1.11 40.00, 4.44 50.00, 10.00 60.00, 15.56 70.00, 21.11 80.00, 26.67 90.00, 32.22 100.00, 37.78 ------------------ """