Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python code to do a password for a username randomly and automatically. The password should satisfy the conditions: The length of the password should

Python code to do a password for a username randomly and automatically. The password should satisfy the conditions: The length of the password should be from 8 to 15 . The first character should be a letter(upper case or lowercase) inclusion of one or more numerical digits ('0'.... '9') inclusion of one or more upper-case letters ('A'.... 'Z') inclusion of one or more lower-case letters ('a'.... 'z') inclusion of one or more special characters (@, #, S.%!) Step 1. Use the random module to create the length of the password. Lenth=random.randrange (8,16) # create the length of the password Step 2. set the first element of the password Step 3. set the other elements in the password Step 4. Make the password include at least one digit, one upper case letter, one low case letter, and one special character.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

def generate password length randomrandint 8 15 Generate random Length between 8 and 15 pass... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming With Microsoft Visual Basic 2017

Authors: Diane Zak

8th Edition

1337102121, 9781337517058, 978-1337102124

More Books

Students also viewed these Programming questions

Question

describe the key characteristics of a theoretical model in general;

Answered: 1 week ago