365 Days of Python: Day #70 — Savory Snacks

Rick Deckard
2 min readJan 25, 2023

Eating sometimes feels like a chore.

You wake up…time to eat breakfast.

You work for 4 hours…time to eat lunch.

You get home from work…time to eat dinner.

Where is the fun in that? Why does eating feel so scheduled?

Day #70 (1/23/2023)

“Everyone I know is looking for solace, hope, and a tasty snack.”

— Maira Kalman

Accomplishments

  • Wrote the output() function for my PotW (see below)
def output():
print("\n{:0.4f} {} = {:0.4f} {}".format(input_value, input_units, output_value, output_units))
  • Added a convert_again() function to my PotW (see below)
def convert_again():    
again = input("\nWould you like to convert another value? (Y/N)\n").upper()

if again == "Y":
supported_conversions()
elif again == "N":
exit()
else:
print("ERROR: INVALID INPUT")
convert_again()
  • Tested and debugged my PotW
  • Uploaded my PotW to GitHub

Weekly Goals

  • Write a program that converts between imperial and metric units (100%)

--

--