i'm new to python i'm trying to use the exit function from sys but somehow it didn't work in my computer this is my code :
from sys import exit userResponse = input ("n or y?") if not (userResponse =="n" or userResponse =="y") : exit ("ERROR")
Aucun commentaire:
Enregistrer un commentaire