365 Days of Python: Day #76 — Selective Safety

Rick Deckard
2 min readJan 31, 2023

All work environments that are regulated by OSHA are required to have some level of PPE worn by the employees working in it.

However, the level of adherence to the regulations set by OSHA is another story. Some work environments demand strict adherence, while others approach the regulations with a lax attitude.

Therefore, the question remains: is safety in the hands of the employee or in the hands of those who set the regulations?

Day #76 (1/29/2023)

“For safety is not a gadget but a state of mind.”

— Eleanor Everet

Accomplishments

  • Wrote the game_difficulty() function for my PotW (see below)
def game_difficulty():
global guesses_remaining

difficulty = input("Which difficulty would you like to play on? (Easy/Medium/Hard/Extreme)\n").upper()

if difficulty == "EASY":
guesses_remaining = 15
elif difficulty == "MEDIUM":
guesses_remaining = 10
elif difficulty == "HARD":
guesses_remaining = 5
elif difficulty == "EXTREME":
guesses_remaining = 1
else:
print("ERROR: INVALID DIFFICULTY\n")
game_difficulty()
  • Wrote the number_generator() function for my PotW (see below)

--

--