365 Days of Python: Day #81 — Climate Consternation

Rick Deckard
2 min readFeb 4, 2023

Climate change was first discovered in 1938, when Guy Callendar made a connection between the increase in carbon dioxide with the increase of global temperatures.

However, it was not for another 30 years (at the First Earth Summit in 1972) when efforts to preserve the climate began.

Day #81 (2/3/2023)

“What you do makes a difference, and you have to decide what kind of difference you want to make.”

— Jane Goodall

Accomplishments

  • Wrote the password_generator() function for my PotW (see below)
def password_generator():
global password

password_length = random.randint(8, 16)
password = [None] * password_length

symbols = ["!", "@", "#", "$", "%", "^", "&", "*"]
letters = list(string.ascii_lowercase)

for i in range(len(password)):
character_random = random.randint(1, 3)

if character_random == 1:
symbol_random = random.randint(1, len(symbols)-1)
password[i] = symbols[symbol_random]

elif character_random == 2:
letter_random = random.randint(1, len(letters)-1)
case_random = random.randint(0, 1)
if case_random == 0:
password[i] = letters[letter_random].lower()…

--

--