Answers for "random string generate python of 2.7"

0

random string generate python of 2.7

>>> import string
>>> import random
>>> def id_generator(size=6, chars=string.ascii_uppercase + string.digits):
    return ''.join(random.choice(chars) for _ in range(size))
Posted by: Guest on September-30-2020
0

create 20 char with python

"a" * 20
Posted by: Guest on August-03-2020

Code answers related to "random string generate python of 2.7"

Python Answers by Framework

Browse Popular Code Answers by Language