-
Notifications
You must be signed in to change notification settings - Fork 1
/
Exercicio 71.1.py
42 lines (39 loc) · 1.08 KB
/
Exercicio 71.1.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
#Simulando Caixa eletronico 2.0
import webbrowser
from time import sleep
while True:
print('{:-^40}'.format('CAIXA ELETRONICO DO JAPA'))
cont = 0
v = int(input('Valor do saque :'))
while not v == 0:
cont += 1
if v < 10:
nota = 1
v -= nota
if v == 0:
print(f'{cont} Notas de R${nota}')
cont = 0
elif v < 20:
nota = 10
v -= nota
if v == 0 or v < 10:
print(f'{cont} Notas de R${nota}')
cont = 0
elif v < 50:
nota = 20
v -= nota
if v == 0 or v < 20:
print(f'{cont} Notas de R${nota}')
cont = 0
elif v >= 50:
nota = 50
v -= nota
if v == 0 or v < 50:
print(f'{cont} Notas de R${nota}')
cont = 0
sleep(1)
print('Me sigam no instagram para aprendemos PYTHON juntos')
sleep(2)
link = "https://www.instagram.com/janilsoncoimbra/"
webbrowser.open(link,2)
break