Apr-26-2020, 10:58 AM
The statements with the same indentation belong to the same group similar to blocks created in other programming language using {}
break
is part of for loop due to indentation. Hence it print first row and breaks. It should have same indention as "if". if proceed.upper() != "Y": for studentID, finalGrade in items: print(studentID, finalGrade) print("Program has terminated, goodbye!") break;Same issue in your implementation of deanhystad's code