samedi 19 septembre 2015

'If not' won't allow we to use 'or' in line of code

if not theclass == '1' or class == '2' or xclass == '3': 
    print 'Invalid Class.\n'

It only allows class '1' to be accepted when run.

Aucun commentaire:

Enregistrer un commentaire