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
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
Copyright © 2021 Jogjafile Inc.
ord is a function, so you should change your code like this
UPD as @John Coleman said there is still bugs in code
here is the working example