Sos, code incorrrect

blue -  
 Utilisateur anonyme -
Bonjour,
je n'arrive pas à comprendre ce qui ne va pas avec ce code
def verif (ch):
test=True
j=0
while (j<len(ch)) and test:
if not ("A"<=ch[j].upper()<="Z") or ch[j]==" ":
test=False
j=j+1
return ch!="" and test
def saisie():
global N
N= int (input("Donnez un entier N"))
while not 2<=N<=25:
N= int (input("Donnez un entier N valide"))
def remp(T,N):
for i in range (N):
T[i]=input("Entrez une chaine de caractères")
while not(verif (T[i]) and len(T[i])<=20):
T[i]=input("Entrez une chaine de caractères valide")
def voy (ch):
c=0
for i in range (len (ch)):
if ch[i].upper() in {"OIYEAU"}:
c=c+1
return c
#pp
saisie()
T=[""]*N
remp(T,N)
for i in range (N):
max= ""
if voy (T[i])> voy(T[i+1]):
max= T[i]
print(max)

Configuration: Windows / Chrome 100.0.4896.75

1 réponse