365 Days of Python: Day #49 — Starry Skies

Rick Deckard
2 min readJan 4, 2023

The sky is so full of stars that it is estimated that there are roughly 10,000 stars for each grain of sand on Earth.

And if you live in an area with small amounts of air pollution (lights, smog, etc.), then you most likely have a clear view of this ocean of stars.

Day #49 (1/2/2023)

“The nitrogen in our DNA, the calcium in our teeth, the iron in our blood, [and] the carbon in our apple pies were made in the interiors of collapsing stars. We are made of starstuff.”

— Carl Sagan

Accomplishments

  • Added a clear() function to my PotW (see below)
def clear():
if os.name == "posix":
os.system("clear")
else:
os.system("cls")
  • Added a forecast_again() function to my PotW (see below)
def forecast_again():
again = input("\nWould you like to see another 5-day forecast? (Y/N)\n").upper()

if again == "Y":
location()
elif again == "N":
clear()
exit()
else:
print("ERROR: INVALID INPUT")
forecast_again()
  • Modified some variables names in my PotW
  • Tested and debugged my PotW
  • Uploaded my PotW to GitHub

--

--