-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.py
More file actions
38 lines (35 loc) · 1013 Bytes
/
App.py
File metadata and controls
38 lines (35 loc) · 1013 Bytes
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
import SimpleList as sl
import CQueque as cq
import Queque as q
import Stack as st
import Reader as r
# global variables
choice = 0
selection = 0
#------------PROGRAM STARTS------------
#keeps the program running until 0 is choosen
while True:
print('''
┌─────────────────────┐
│ MENU DE SELECCION │
├─────────────────────┤
│ 1] COLA │
│ 2] PILA │
│ 3] COLA CIRCULAR │
│ 4] LISTA SIMPLE │
│ 0] SALIR │
└─────────────────────┘''')
#selection of choice
selection = r.ReadInt(0, 4)
if (selection == 1):
q.Cola()
elif (selection == 2):
st.Pila()
elif (selection == 3):
cq.ColaCircular()
elif (selection == 4):
sl.ListaSimple()
elif (selection == 0):
print("CERRANDO PROGRAMA...\n")
break
#------------END OF PROGRAM------------