Dec-21-2017, 06:07 AM
minor quibble: your if conditional is not a loop.
while is conditional and also a loop, if is conditional but it is not a loop-- though its certainly understandable why someone would think of it as one.
while is conditional and also a loop, if is conditional but it is not a loop-- though its certainly understandable why someone would think of it as one.
while x > 5: print(True) breakdoes the same as:
if x > 5: print(True)