vendredi 26 octobre 2018

Python3: Returning random.randint with string in one line

import random
for x in range(5):
a = (random.randint(1,71))
b = "your numbers are"
c = str(a)
    print(b + c)

How do I get the output "your numbers are x1, x2, x3, x4, x5"?




Aucun commentaire:

Enregistrer un commentaire