-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
22 lines (19 loc) · 734 Bytes
/
main.py
File metadata and controls
22 lines (19 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from package_def import add, all, people, shelf
if __name__ == '__main__':
def start():
while True:
print('Available commands: people, shelf, all, add, end')
comand_code = input('Enter command name: ')
if comand_code == 'p':
print('\n', people.get_name(), '\n')
elif comand_code == 's':
print('\n', shelf.get_shelf(), '\n')
elif comand_code == 'l':
print('\n', all.get_list(), '\n')
elif comand_code == 'a':
print('\n', add.add_doc(), '\n')
elif comand_code == 'e':
break
else:
print('Command not found:', comand_code)
start()