r/PythonLearning • u/Inevitable_Low_2387 • Jun 17 '26
how can i make this program?
I need to create a Python program for a student management assignment using basic Python concepts such as lists, loops, conditionals, functions, sorting, file reading, and file writing.
The program must manage 20 students. Each student has:
Name
First exam grade
Second exam grade
The program should include the following menu options:
Add 20 students.
Sort students by:
Name (ascending)
First exam grade (descending)
Second exam grade (ascending)
Calculate and display each student's average grade and the mode of all averages.
Display all student names that contain a user-specified letter (case-insensitive).
Create a file called "notas.txt" containing:
Original name
Reversed average grade (mirror format)
Reversed name
Read and display the contents of "notas.txt". If the file does not exist, display an error message.
Exit the program.
Restrictions:
Must use basic Python.
Must use lists and functions.
I am not sure whether built-in functions such as sort(), split(), dictionaries, or external libraries are allowed.
What would be a good structure or approach to solve this assignment?
1
u/Prize_Shine3415 Jun 17 '26
I would start by opening up an IDE. Then start typing code. Try to get the code to do what you want.
Hope that this is helpful.