Here is exercise in error handling, while looping and for looping with itertools.chain.
It is also exercise of functions not letting user to go without giving proper input. I call them to myself 'jail functions'.
Here you could add as an exercise breaking out of loop and continuing until user request to quit.
The code works in both Python2 and Python3 with Python2 input overwritten to be raw_input.