Jan-08-2017, 02:42 PM
@Ofnuts actually in the above code
student
is list of dicts, so key
is a dict. Yoritz is correct that the above code is not the one that produce this error. However due to the incorect indentation it prints only the last name, res pair.