Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Student=open('Students_Info.txt','w')
- teachers=open('Teachers_Info.txt','w')
- Progress=open('Students progress.txt','w')
- print('WELCOME TO NEW SCHOOL n')
- print('Enter correct username and password to continue')
- count=0
- while count < 10000:
- username = input('Enter username: ')
- password = input('Enter password: ')
- if username=='Admin' and password=='admin':
- print('Welcome To School Administration')
- break
- else:
- print('Password Wrong !.Access Denied')
- count += 1
- Continue=input('You Want To Start:')
- while Continue=='Yes':
- print('First Enter The Data Of All Student Then Enter Results !!')
- print('1 For Enter New Student')
- print('2 For Enter Teacher Information')
- print('3 for Enter Result Of Student')
- print('4 For Exit')
- option=eval(input('Enter Your option : '))
- if option==1:
- print('Fill All The data !!')
- Name=[]
- Fname=[]
- DOB=[]
- Religion=[]
- Class=[]
- RollNo=[]
- name=str(input('Enter name Of Student : '))
- Name.append(name)
- a=str(Name)
- fname=str(input('Enter Name Of father : '))
- Fname.append(fname)
- b=str(Fname)
- dob=str(input('Enter date Of Birth : '))
- DOB.append(dob)
- c=str(DOB)
- religion=str(input('Enter Religion : '))
- Religion.append(religion)
- d = str(Religion)
- Classs=eval(input('In Which Class You Have To Take Admission : '))
- Class.append(Classs)
- x=str(Class)
- rollno=str(input('Roll No Alloted : '))
- RollNo.append(rollno)
- z=str(RollNo)
- while Continue=='Yes':
- Student.write('Name:' + a + 'n' + 'Fname:' + b + 'n' + 'DOB:' + c + 'n' + 'Religion:' + d + 'n'+'Class:'+x+'n'+'Roll no:'+ z + 'n'+'n')
- break
- elif option == 2:
- print('Update data For Teacher Information')
- Teacher_Name = []
- qualification = []
- experience = []
- specialization = []
- Teacher_salary = []
- Teacher = str(input('Enter Teacher Name : '))
- Teacher_Name.append(Teacher)
- e = str(Teacher_Name)
- Qualification = str(input('Enter Qualification : '))
- qualification.append(Qualification)
- f = str(qualification)
- Experience = str(input('Enter Teachers Experiences : '))
- experience.append(Experience)
- g = str(experience)
- Specialization = str(input('Enter Specialization : '))
- specialization.append(Specialization)
- h = str(specialization)
- TeacherSalary = eval(input('Enter Salary Of Teacher : '))
- Teacher_salary.append(TeacherSalary)
- i = str(Teacher_salary)
- while Continue=='Yes':
- teachers.write('Teacher Name:' + e + 'n' + 'Enter Qualification' + f + 'n' + 'Experience' + g + 'n' + 'specialization:' + h + 'n' + 'Teacher_salary:' + i + 'n' + 'n')
- break
- elif option == 3:
- print('Progress Of Student')
- C=[]
- R=[]
- M=[]
- E=[]
- U=[]
- P=[]
- c=eval(input('Which Class You To Update Progess : '))
- C.append(c)
- j=str(C)
- r=str(input('Enter Roll NO:'))
- R.append(r)
- k=str(R)
- S=str(input('Enter Subjects : '))
- l=str(S)
- m=eval(input('Enter Maths No : '))
- M.append(m)
- n=str(M)
- e=eval(input('Enter English Number :'))
- E.append(e)
- o=str(E)
- u=eval(input('Enter urdu Number :'))
- U.append(u)
- p=str(U)
- Per=((m+e+u)/300)*100
- x=str(Per)
- while Continue=='Yes':
- Progress.write('Class:'+j+'n'+'Roll No:'+k+'n'+'Subjects:'+l+'n'+'Maths No:'+n+'n'+'English No:'+o+'n'+'Urdu No:'+p+'n'+'Percentage:'+x+'n')
- break
- elif option==4:
- Student.close()
- teachers.close()
- Progress.close()
- exit(4)
Add Comment
Please, Sign In to add comment