Student Admission System by Aryadrj
Student Admission System by Aryadrj
Program->Actually, this program is very easy. if you don't get then comment below in comment box, email me aryadrj@gmail.com.
import os
import platform global listStd listStd = ["Arya", "Drj", "Aryadrj"] def manageStudent(): x = "#" * 30 y = "=" * 28 global bye bye = "\n {}\n# {} #\n# ===> Brought To You By <=== #\n# ===> Aryadrj <=== \t \t #\n# {} #\n {}".format(x, y, y, x) print(""" ------------------------------------------------------ |======================================================| |======== Welcome To Student Admission System ========| |====================By Aryadrj========================| ------------------------------------------------------ Enter 1 : To View Student's List Enter 2 : To Add New Student Enter 3 : To Search Student Enter 4 : To Remove Student """) try: userInput = int(input("Please Select Option: ")) except ValueError: exit("\nHy! That's Not A Number") else: print("\n") if (userInput == 1): print("List Students\n") for students in listStd: print("=> {}".format(students)) elif (userInput == 2): newStd = input("Enter New Student: ") if (newStd in listStd): print("\nThis Student {} Already In The Database".format(newStd)) else: listStd.append(newStd) print("\n=> New Student {} Successfully Add \n".format(newStd)) for students in listStd: print("=> {}".format(students)) elif (userInput == 3): # This Option Will Search Student From The List srcStd = input("Enter Student Name To Search: ") if (srcStd in listStd): # This Condition Searching The Student print("\n=> Record Found Of Student {}".format(srcStd)) else: print("\n=> No Record Found Of Student {}".format(srcStd)) # Error Message elif (userInput == 4): rmStd = input("Enter Student Name To Remove: ") if (rmStd in listStd): listStd.remove(rmStd) print("\n=> Student {} Successfully Deleted \n".format(rmStd)) for students in listStd: print("=> {}".format(students)) else: print("\n=> No Record Found of This Student {}".format(rmStd)) elif (userInput < 1 or userInput > 4): print("Please Enter Valid Option") manageStudent() def runAgain(): runAgn = input("\nwant To Run Again Y/n: ") if (runAgn.lower() == 'y'): if (platform.system() == "Windows"): print(os.system('cls')) else: print(os.system('clear')) manageStudent() runAgain() else: quit(bye) runAgain()
Output
------------------------------------------------------
|======================================================|
|======== Welcome To Student Admission System ========|
|====================By Aryadrj========================|
------------------------------------------------------
Enter 1 : To View Student's List
Enter 2 : To Add New Student
Enter 3 : To Search Student
Enter 4 : To Remove Student
Please Select Option: 1
List Students
=> Arya
=> Drj
=> Aryadrj
want To Run Again Y/n: n
##############################
# ============================ #
# ===> Brought To You By <=== #
# ===> Aryadrj <=== #
# ============================ #
##############################
More Questions Will Be Updated, Stay Connected.
If you have any doubt/queries then please contact us
#tags->
python mini projects vtu,python project,library system,mini project in python 2019
Very nice blog and the pieces of information are very good and useful. Thank you and keep going.
ReplyDeleteEmail Marketing Lists
Email Marketing Database
Database Provider
Small Business Database
B2B Database
World wide Email Database