Random_pass1 = random.choices(printable_list, k=password_length) Random_pass_containment = "".join(random.choices(printable_LETTER, k=password_length))Įlif password_containment.endswith( "ALL"): "What characters should your password contain(reply with LETTERS,NUMBERS,PUNCTUATIONS,LEMBERS,LEPUNC,PUNCBER or ALL: ") Print( """LETTER + NUMBER = LEMBERS \nLETTER + PUNCTUATIONS = LEPUNC \nPUNCTUATION + NUMBER = PUNCBER""") Site = input( "What website do you plan to use the password on: ") #Prompts website question return siteĭef containment(): #shows the various combination of passwords Hello = input( "How many characters should your password be? ") #Prompts a question return int(Hello) #returns an integer value def website(): Working with functions like these makes your code easier to read and helps simplify and easily call actions without rewriting the code all over again def create_passLength(): O A function that selects random password characters depending on the user’s choice of combination (letters, numbers or punctuations). O A function that asks the user what website he/she plans to use the password on. O A function that asks the user about the password’s length
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |