Commit a40779a8 authored by Guillaume's avatar Guillaume

Update

parent 346ed994
......@@ -21,9 +21,9 @@ def pycaptcha():
else:
extension = f"la {y+1}ème"
reponse = str(input(f"Donner {extension} lettre du mot {mots[x]} : "))
reponse = str(input(f"Donner {extension} lettre du mot {str(mots[x]).upper()} : "))
if reponse.lower() == str(captcha[y]) or reponse.upper() == str(captcha[y]):
if reponse.lower() == str(captcha[y]) or reponse.upper() == str(captcha[y]): # On prend en charge les réponses en MAJUSCULE ou minuscule
print("Ok !")
verif_captcha = True # Si la réponse est ok on passe la valeur à True
else:
......@@ -35,4 +35,4 @@ def pycaptcha():
return verif_captcha # On retourne True ou False en sortie de la fonction
# pycaptcha()
\ No newline at end of file
pycaptcha()
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment