mail.python.org
[Tutor] How to make to exit the loop, while typing Enter
While what you have written will work, its not usually a good idea to use a try/except block to control program flow like that. In pseudo code terms what you want is: while more marks. read and store marks process marks. So the processing should really be outside the loop.