Are these equivelent? Is one approach prefered
over the other
#check to see if var contains something... if so
proceed.
if var is not None:
continue
#check to see if var is empty... if so prompt user
again.
if not var:
print "Please specify the amount."
...
over the other
#check to see if var contains something... if so
proceed.
if var is not None:
continue
#check to see if var is empty... if so prompt user
again.
if not var:
print "Please specify the amount."
...
Comment