+ 11
My latest code!!!
Hey I would really appreciate it if you could check out my latest code and give me feedback on it thanks. https://code.sololearn.com/c55r9hkMQxC8/?ref=app
2 Answers
+ 4
This can be done a bit simpler if you are interested. letters and numbers are built in and can be imported with import string.
import random
import string
password=""
runs=int(input("How long should it be? "))
for i in range(runs):
password=password+random.choice(string.ascii_letters + string.digits)
print(password)
0
Simple and effective. good job