[Tutor] How to make to exit the loop, while typing Enter
while more marks. read and store marks process marks. So the processing should really be outside the loop. The idiomatic way to break out of a loop in Python is to use the 'break' keyword (it has a cousin 'continue' too). while: try: loop code here. if loop should end.