Once you are on the internet, you have to come up with passwords. After a while it will be difficult to remember those passwords. You could write them down somewhere, but the wrong person could find them. Why not have Python help you to come up with a logical password whose logic of creation might help you to recall it.
''' password_create101.py
a simple program to create a password you can remember
'''
# use something you can remember
# like your first and last name and year of birth
first = "David"
last = "Herzig"
year = 1993
# first 3 letters of first name, last name and last 3 numbers of year
password = first[:3] + last[:3] + str(year)[-3:]
print(password) # DavHer993
# or reverse order of the name
password = last[:3] + first[:3] + str(year)[-3:]
print(password) # HerDav993
# throw in your special character and shorten the year
c = "*"
password = first[:3] + last[:3] + str(year)[-2:] + c
print(password) # DavHer93*
# change position of c for different password
password = first[:3] + last[:3] + c + str(year)[-2:]
print(password) # DavHer*93
If you have other coding ideas, please post them in this thread.