Академический Документы
Профессиональный Документы
Культура Документы
import platform
x = "#" * 30
y = "=" * 28
global bye #Making Bye As Super Global Variable
bye = "\n {}\n# {} #\n# ===> Brought To You By <=== #\n# ===> code-projects.org <===
#\n# {} #\n {}".format(x, y, y, x) # Will Print GoodBye Message
------------------------------------------------------
|======================================================|
|======== Welcome To Student Management System ========|
|======================================================|
------------------------------------------------------
""")
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): #This Option Will Remove Student From The List
rmStd = input("Enter Student Name To Remove: ")
if(rmStd in listStd): #This Condition Removing The Student From The List
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)) #Error
Message
runAgain()