+ 2

Password Generator. Check my and suggest your own version

import random charsCaps = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" chars = "abcdefghijklmnopqrstuvwxyz" nums = "0123456789" symbols = "!@$%^&_=+-/.)" all_data = charsCaps + chars + nums + symbols password = '' for x in range(12): password = password + random.choice(all_data) print('Your new password: ' + password) https://code.sololearn.com/cPdibYYWOwN5/#

5th Jun 2017, 6:01 PM
Dmitriy Yurkin
Dmitriy Yurkin - avatar
3 ответов
+ 2
Cool! Your feature is useful!
9th Jun 2017, 8:05 AM
Dmitriy Yurkin
Dmitriy Yurkin - avatar
+ 1
I added some checks to be sure you've used at least one of each character type. https://code.sololearn.com/cIu8y5423O89/#py
9th Jun 2017, 6:47 AM
Edward Furey
Edward Furey - avatar
0
Thanks :)
9th Jun 2017, 8:07 AM
Edward Furey
Edward Furey - avatar