Apr-27-2020, 12:29 AM
(Apr-26-2020, 10:58 AM)anbu23 Wrote: 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
Thank you so much anbu23!
Kind regards,
Azure