-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme
61 lines (45 loc) · 2.07 KB
/
Readme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Student Management System
Description
The Student Management System is a Python-based application that allows users to manage student data, including adding, editing, and removing student records. The system also supports saving and loading student data from a CSV file. This project was developed to simplify the management of student information in an educational institution.
Features
Add a new student record
Edit an existing student record
Delete a student record
Clear all student records
Save student data to a CSV file
Load student data from a CSV file
Display student data in a formatted table
Requirements
Python 3.x
prettytable library
Code Structure
main.py: The main script that runs the application.
students.csv: The CSV file used to store student data.
Usage
Start the application:
Run the main.py file using Python:
Add a new student:
Select option 1 to add a new student. Enter the required details (first name, last name, patronymic, scholarship status, IIN, group, and address).
Edit an existing student:
Select option 2 and specify the index of the student record you want to edit. Enter the updated details.
Delete a student:
Select option 3 and specify the index of the student record you want to delete.
Clear all student records:
Select option 4 to clear all student records. Confirm your action when prompted.
Exit the application:
Select option 0 to exit the application. Any changes will be saved to the CSV file before exiting.
Functions
addStudent(lst: list)
Prompts the user to enter the details of a new student and adds the student to the list.
EditStudent(lst: list, index)
Prompts the user to enter the updated details of an existing student and updates the student record in the list.
RemoveStudent(lst: list, index)
Removes the student record at the specified index from the list.
getINT() -> int
Prompts the user to enter a valid index and returns it.
getIIN() -> int
Prompts the user to enter a valid IIN and returns it.
row_table(lst: list)
Adds rows to the PrettyTable object from the student list.
write_CSV(lst: list)
Writes the student list to the CSV file.