https://tutorial.eyehunts.com/python/python-exit-while-loop-example-code/
Python exit while loop | Example code