14 lines
350 B
Python
14 lines
350 B
Python
|
|
#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.')
|