Python Project
Python Project
Group members:
4. Pawar Divya(2312193)
5. Mahale Tanisha(2312117)
**Password Generator**
import string
import random
1. Digits
2. Letters
3. Special characters
4. Exit''')
characterList = ""
if(choice == 1):
characterList += string.ascii_letters
elif(choice == 2):
characterList += string.digits
elif(choice == 3):
# characters
characterList += string.punctuation
elif(choice == 4):
break
else:
password = []
for i in range(length):
# character list
randomchar = random.choice(characterList)
password.append(randomchar)
# printing password as a string
Output:-