Day 7 of learning python 🐍. Today's project – a password generator in Python. ...

avatar

... This project took me two full days to make. Happy Learning 🎊
#100daysofcode #python #proofofbrain #technology #tech



Posted via D.Buzz



0
0
0.000
6 comments
avatar

Woooww it's so cool to mess around with these codes for two days. 😀

Posted via D.Buzz

0
0
0.000
avatar

You should see my initial code, it was a jumbled mess

Posted via D.Buzz

0
0
0.000
avatar
(Edited)

Another tip, there are some great built in functions using the string library to get those letter sets. Try these out for example:

import string
print(string.ascii_uppercase)
print(string.ascii_lowercase)
print(string.ascii_letters)
print(string.digits)
print(string.printable)

They will output what you need automatically:

ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789
0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
0
0
0.000
avatar

Wooww this is great.
Writing code with Python must be a great experience. 😀

Posted via D.Buzz

0
0
0.000