عند تشغيل البرنامج يعطيني
[email protected]:/media/PERSONNEL/DkRinG/HACKING/Projects$ python '/media/PERSONNEL/DkRinG/HACKING/Projects/inscription.py' File "/media/PERSONNEL/DkRinG/HACKING/Projects/inscription.py", line 18 elif (ch=='2'): ^ SyntaxError: invalid syntax
[email protected]:/media/PERSONNEL/DkRinG/HACKING/Projects$ # -*- coding: utf-8 -*- #!/usr/bin/python print "*******************Bienvenu*******************" print "*******************Institut*******************" name = raw_input ('Nom :') age = raw_input ('age :') if (age<18 or age >23) or (name=='') : print "Erreur invalide information" else : print " choisissez une branche ! \n 1 :Réseau \n 2 : Web \n 3 : Maintenance " ch=raw_input ('Choix :') if (ch=='1') : moy=float(raw_input('entré votre moyenne :')) if (moy>=13) : print "Félicitation et votre chois est accepte par l'administration" % (name) else : print "vous pouvez pas s'inscrire dans cette branche" elif (ch=='2'): moy=float(raw_input('entré votre moyenne :')) if (moy>=12.5 & moy<13) : print "Félicitation et votre chois est accepte par l'administration" % (name) else: print "vous pouvez pas s'inscrire dans cette branche" elif (ch=='3') : moy=float(raw_input('entré votre moyenne :')) if (moy>11 & moy<12.5) : print "Félicitation et votre chois est accepte par l'administration" % (name) else: print "vous pouvez pas s'inscrire dans cette branche"