-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
45 lines (32 loc) · 955 Bytes
/
app.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
from classes.sistema import Sistema
from classes.conta import Conta
conta = Conta()
sistema = Sistema()
sistema.limpar_terminal()
menu = """
[d] Depositar
[s] Sacar
[e] Extrato
[q] Sair
=> """
continuar_operando = True
while continuar_operando:
escolha_operacao = input(menu).upper()
match escolha_operacao:
case "D":
sistema.limpar_terminal()
conta.operacao_deposito()
continuar_operando = conta.operar
case "S":
sistema.limpar_terminal()
conta.operacao_sacar()
continuar_operando = conta.operar
case "E":
sistema.limpar_terminal()
conta.operacao_extrato()
continuar_operando = conta.operar
case "Q":
print("Sair")
break
case _:
print("Opção inválida, por favor selecione novamente a operação desejada.")