from random import* Lettre = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] Valeur = [1,3,3,2,1,4,2,4,1,8,10,1,2,1,1,3,8,1,1,1,1,4,10,10,10,10] score=0 scorefin=0 def Tirage(): while 1: aleat = randint(0,25) reponse = input("Tirage de la lettre, tapez ") scrabb ="lettre {} : {} point(s)." print(scrabb.format(Lettre[aleat], Valeur[aleat])) score=Valeur[aleat]+score print(score) return def Mot(): mot=input("mot:") b=len(mot) print(b) for i in range (b): a=Lettre.index(mot[i]) scorefin=Valeur[a]+scorefin print(scorefin) return ########## Programme Principal ########## Tirage()