lundi 1 novembre 2021

How do I make my Print Statement print on only one line?

In this program I am trying to print my code as "random letters here" instead of "r" "a" "n" "d" "o" "m" etc.

import random
import time

All = "abcdefghijklmnopqrstuvwxyz1234567890"
i = 0

while i < 6:
    time.sleep(1)
    print(All[random.randint(1,35)])
    i += 1



Aucun commentaire:

Enregistrer un commentaire