I want to generate a string of size N.
It should be made up of numbers and uppercase English letters such as:
import string from random import * characters = string.ascii_letters + string.punctuation + string.digits password = "".join(choice(characters) for x in range(randint(8, 16))) print password