-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
69 lines (63 loc) · 2.25 KB
/
main.py
File metadata and controls
69 lines (63 loc) · 2.25 KB
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
62
63
64
65
66
67
68
69
import school
Student1=school.school.student("Emre","Mutlu",1317,100,"7-A")
Teacher=school.teachers("Melissa","Blank",13579)
School=school.school("Stanley High School")
while True:
print("""
Dear Everyone Wellcome To {}
""".format(School.name))
print("""
// Choose your Status
[1] Student
[2] Teacher
[*] Quit
""")
op=(input("Please Choose : "))
if op=="1":
print("""Student Database
[1] Notes
[2] Student Info
""")
op2=input("Please Choose : ")
if op2=="1":
if Student1.diciplinePoint==None:
pass
else:
Student1.showNotes()
elif op2=="2":
Student1.show()
else:
print("Wrong paramatre . We informed the teacher")
Student1.Teacher()
elif op=="2":
print("You are in Teacher's Database")
print("""
The List of Achievement
[1] Dicipline
[2] Student's Notes
[3] Teacher's Infos
""")
op3=input("Choose One: ")
if op3=="1":
password=int(input("Please enter your teacher password: "))
if password==Teacher.password:
Student1.dicipline()
elif password!=Teacher.password:
print("Wrong Password! We informed ")
Student1.Teacher()
elif op3=="2":
password=int(input("Please enter your teacher password: "))
if password==Teacher.password:
if Student1.diciplinePoint==None:
pass
else:
Student1.changeNotes()
Student1.showNotes()
elif password!=Teacher.password:
print("Wrong Password! We informed ")
Student1.Teacher()
elif op3=="3":
Teacher.teacherInfo()
elif op=="*":
print("You are leaving the system. Have a good day")
break