lundi 31 octobre 2022

why does it say Syntax,Error: invalid syntax at line 5 [closed]

from random import*
def saisie():
    ch1=""
    for i in range (1,9):
        ch1[i]=chr(randint(ord'A',ord'Z'))
        ch1=ch1+ch1[i]
    return ch1 

i wanted to get a word randomly selected with capital and 8 letters




Aucun commentaire:

Enregistrer un commentaire