List Conditions
Instead of using lots of ors or ands:
if age==13 or age==18 or age==21 or age==50:
if name!='fred' and name!='sue' and name!='mark':
lists can be used:
Instead of using lots of ors or ands:
if age==13 or age==18 or age==21 or age==50:
if name!='fred' and name!='sue' and name!='mark':
lists can be used: