Student Management System Project in Python | Python Projects for Beginners - Codexashish

Student Management System Project in Python

Student Management System Project

In this article, we are going to make Student Management System Project in Python Programming. In this Python Project, we have taken a global list of students and we will do all operations on this list. We will add new students, show the total students list, search for a new student, remove a student and edit a student in the global list.

    Features:-

    • Student List
    • Add New a Student
    • Search a Student
    • Remove a Student
    • Edit a Student


    How to Run:-

    • First you need to install Python
    • Install some module:- os and platform
    • Download the code
    • Save code with .py extension
    • Now run the code


    Code:-

    # Created by Ashish yadav

    import os

    import platform


    global liststd

    liststd = ["Ashish","Rohan","Ashu","Satyam","Vivek","Anurag","Mohit"]


    def main():

    print("""

    >>>>>>>>>>>>>>>>>>>>>>>  Welcome To Student Management System  <<<<<<<<<<<<<<<<<<<<<<<

    Enter 1=To student's list

    Enter 2=To add new student

    Enter 3=To search student

    Enter 4=To remove student

    Enter 5=To edit student

           """)


    try:

    user_input=int(input("please select an above option : "))

    except ValueError:

    print("\nThat's not true")

    else:

    print("\n ")


    if (user_input==1):

    print("List Students\n")  

    for students in liststd:

    print("=> {}".format(students))


    elif(user_input==2):

    newstd=input("Enter name of new student : ")

    if (newstd in liststd):

    print("This student is already in the database.")

    else:

    liststd.append(newstd)

    print("New student succeffuly added")

    for students in liststd:

    print("=> {}".format(students))


    elif(user_input==3):

    srstd=input("Enter name of the student : ")

    if (srstd not in liststd):

    print("Student Name is not present in the list ")

    else:

    print("Student Name is present in the list")


    elif(user_input==4):

    rmstd=input("Enter student name for remove : ")

    if (rmstd not in liststd):

    print("This student is not in the list")

    else:

    liststd.remove(rmstd)

    for students in liststd:

    print("=> {}".format(students))


    elif(user_input==5):

    for students in liststd:

    print("=> {}".format(students))

    edsdt=input("Enter to edit student name : ")

    if (edsdt in liststd):

    newstd=input("Enter new name to change "+edsdt+" : ")

    i=liststd.index(edsdt)

    liststd[i]=newstd

    for students in liststd:

    print("=> {}".format(students))

    else:

    print("Please enter valid name")


    elif(user_input < 1 or user_sinput > 4):

    print("This is not valid number")


    # Main functionality to the project

    while 1==1:

    main()

    continue_game = input('Do you want continue  y/n:')

    if(continue_game == 'y'):

    os.system('cls')

    pass

    else:

    quit()


    Click Here to Download this code.

    Conclusion:

    Now you can make this project in your system and you can mention it in your resume also. We have successfully created Student Management System Project in Python Programming.

    You should also check out, Django Developer RoadmapPython Developer RoadmapC++ Complete RoadmapMachine Learning Complete RoadmapData Scientist Learning RoadmapR Developer RoadmapDevOps Learning Roadmap, and Laravel Developer Roadmap.

    Do you have any queries related to This Article, Please mention them in the Comment Section of this Article, We will contact you soon.

    Thank you for reading this blog. I wish you the best in your journey to learning and mastering Python.

    Follow me to receive more useful content:

    Instagram | Twitter | Linkedin | Youtube

    Thank you

    People are also reading:-

    Ashish Yadav

    Hi, I am Ashish Yadav, The founder of the codexashish.com website. I am a Data Analyst by profession and a Blogger, and YouTuber by choice and I love sharing my knowledge with needy people like You. I love coding and blogging.

    2 Comments

    1. I need Help for my project?
      Can you please give me source Code for the following i.e 1. Create data structure using linked list to Store Information of students in any language. 2. Create ds using binary tree to Store Information of students in any language.
      2.

      ReplyDelete
    Post a Comment
    Previous Post Next Post