-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
52 lines (44 loc) · 1.36 KB
/
main.py
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
from funcoes import *
option = -1
while True:
print('''ABC University Ombudsman:
1) List all manifestations
2) List all suggestions
3) List all questions
4) List all compliments
5) Submit a manifestation (create a new one)
6) Search protocol by number (ID)
7) Leave''')
while True:
try:
option = int(input('Enter an option: '))
if option != 1 and option != 2 and option != 3 and option != 4 and option != 5 and option != 6 and option != 7:
option = int(input('Digite uma opção valida: '))
except(ValueError, TypeError):
print('Please enter a valid option! ')
continue
else:
print(f'Introducing the option: {option}')
break
# OPTION TO END THE SYSTEM
if option == 7:
print('End of Program!')
break
# OPTION TO CREATE A MANIFESTATION
elif option == 5:
createManifestation()
# OPTION TO LIST THE MANIFESTATIONS
elif option == 1:
listDemonstrations()
# OPTION TO LIST THE SUGGESTIONS
elif option == 2:
listSuggestions()
# OPTION TO LIST THE COMPLAINTS
elif option == 3:
listComplaints()
# OPTION TO LIST THE COMPLIMENTS
elif option == 4:
listPraise()
# OPTION TO SEARCH BY PROTOCOL
elif option == 6:
searchProtocol()