Oct-09-2017, 03:01 AM
You have another problem. A statement like:
if s != '7' or '14' or '30':
will not do what you expect, since '14' and '30' will be interpreted as True (not False, None or zero),
and the whole statement will always be true.
You should code:
if s not in ('7', '14', '30'):
Or more traditionally:
if s != '7' and s != '14' and s !='30:
if s != '7' or '14' or '30':
will not do what you expect, since '14' and '30' will be interpreted as True (not False, None or zero),
and the whole statement will always be true.
You should code:
if s not in ('7', '14', '30'):
Or more traditionally:
if s != '7' and s != '14' and s !='30: