lundi 18 mars 2019

How to convert a random number to its corosponding letter

I have looked up this and not found anything usefule So I want to take a unknown number (1-26) and convert it to its corrosponding letter. Example:

import random
rand_let = random.randint(1,26)
print(rand_let)
#Insert the numb letter converter here
print(rand_let) # This is the changed version
output: 
3
C




Aucun commentaire:

Enregistrer un commentaire