mercredi 14 juillet 2021

Randomly Generate Letters in python

I want to generate 10 unique English letters and append them to a list in Python.

This is what I tried:

for i in range(10):
    rand = random.choice(string.ascii_letters)
    print(rand)



Aucun commentaire:

Enregistrer un commentaire