-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfuncao_python.py
More file actions
49 lines (38 loc) · 1.01 KB
/
funcao_python.py
File metadata and controls
49 lines (38 loc) · 1.01 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
import os
restaurantes = ['Pizza', 'Margareti Compani'],
def opcao_menu():
try:
opcao = int(input("Escolha a sua opcao? "))
if opcao == 1:
print("1. Cadastrar Restaurante")
elif opcao == 2:
print(" 2. Listar Restaurante")
elif opcao == 3:
print("3. Ativar Restaurante")
elif opcao == 4:
print("4. Sair")
else:
opcao_invalidade()
except:
opcao_invalidade()
def apresentar_menu():
print('Tela de Cadastro\n')
print("1 Cadastrar Restaurante")
print("2 Listar Restaurante")
print("3 Ativar Restaurante")
print("4 Sair")
def opcao_invalidade():
print("Opção Inválida!")
def finaliza_app():
os.system('cls')
#os.system('clear')
print('Finalizando o app')
def cadastrar_restaurante():
os.system("cls")
print("Cadastro de Novos Restaurantes")
no
def main():
apresentar_menu()
opcao_menu()
if __name__ == '__main__':
main()