Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
# Resolve the problem!!
import string
import random

SYMBOLS = list('!"#$%&\'()*+,-./:;?@[]^_`{|}~')


def generate_password():
# Start coding here
#Var to generate Lowercase, Upercase and numbers
characters = string.ascii_lowercase + string.ascii_uppercase
numbers = string.digits
#Parse the Symbols List to String
symbols = ''.join(map(str,SYMBOLS))

#Generating Password
password = ''.join(random.choice(characters + numbers + symbols) for i in range(16))

print(password)
return password

def validate(password):

Expand Down