a = True
obj = {some object}
while a and obj:
doSomething()
certain if statements:
^ some of these will turn a False or obj to None
^Will this keep running while a = True and obj exists?
What if both are false at the same time – will False and None -> evaluate to True so it keeps running or will it exit while loop
Yes it will run while ‘a’ stays true and the obj exists
If both go False it will to evaluate to False
if just one goes to False it will evaluate to False
Try writing:
in your python interpreter it will evaluate to False