Final Project: Student Management Program
Combine variables, lists, dictionaries, functions and loops to build a small student management program.
Learn by experimenting
Study the Python code, run it, change values and observe the output. Practical experimentation is an important part of learning programming.
Python Code
Python runs directly in your browser.
students = [
{'name': 'Alex', 'marks': 80},
{'name': 'Mary', 'marks': 72},
{'name': 'John', 'marks': 65}
]
def show_students(data):
for student in data:
print(student['name'], '-', student['marks'])
print('STUDENT MANAGEMENT SYSTEM')
print('-------------------------')
show_students(students)
Python Output
Program output appears here.
Test your understanding
Choose the best answer.
Which function can calculate the length of a Python list?