Question: a) Write a function in python that generates a random 10 character password. The characters should be randomly selected from the following characters: uppercase letters

a) Write a function in python that generates a random 10 character password. The characters should be randomly selected from the following characters:

uppercase letters A-Z

lowercase letters a-z

numbers 0-9

special characters !@#$%^&*

Hint: use the random library to generate random numbers. b)

Write a program that uses the function you created in part a) to save 100 passwords to the file "passwords.txt"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!