#https://www.programiz.com/python-programming/for-loop # program to display student's marks from record student_name = 'Soyuj' student_name = 'James' marks = {'James': 90, 'Jules': 55, 'Arthur': 77} for student in marks: if student == student_name: print(marks[student]) break else: print('No entry with that name found.')