From 4cafc14ba670bfb32604961005b432ce300db6c9 Mon Sep 17 00:00:00 2001 From: Blake Robertson Date: Thu, 29 Jun 2023 15:20:08 -0400 Subject: [PATCH] test commit for hackathon --- projects/Password_generator/password_generator.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/projects/Password_generator/password_generator.py b/projects/Password_generator/password_generator.py index 452abf1af..da74fffd7 100644 --- a/projects/Password_generator/password_generator.py +++ b/projects/Password_generator/password_generator.py @@ -29,13 +29,18 @@ def button(self): password_generator.pack() def generate_password(self): - characters = string.ascii_letters + string.punctuation + string.digits - password = "" + all_the_characters_to_use = string.ascii_letters + all_the_characters_to_use = all_the_characters_to_use + string.punctuation + all_the_characters_to_use = all_the_characters_to_use + string.digits + return_password = "" for x in range(28): - password+=choice(characters) + return_password = return_password + choice(all_the_characters_to_use) self.password_entry.delete(0, END) self.password_entry.insert(0, password) - + +def main(): + print "this is old print style, and not gonna be used" + #display app = App() app.window.mainloop()