-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauctioni.py
More file actions
38 lines (33 loc) · 1.09 KB
/
auctioni.py
File metadata and controls
38 lines (33 loc) · 1.09 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
import os
logo = '''
___________
\ /
)_______(
|"""""""|_.-._,.---------.,_.-._
| | | | | | ''-.
| |_| |_ _| |_..-'
|_______| '-' `'---------'` '-'
)"""""""(
/_________\\
.-------------.
/_______________\\
'''
participantes = {}
while True:
print(logo)
nome = input("Qual é seu nome? >> ")
lance = int(input("Qual é o seu lance? >> R$ "))
participantes[nome] = lance
os.system("cls")
prox_participante = input("Tem mais participante? S ou N >> ")
if prox_participante == "S":
continue
else:
break
maior_lance = 0
for lances in participantes:
x = participantes[lances]
if x > maior_lance:
maior_lance = x
vencedor = lances
print(f"O arrematante é {vencedor}, com o lance de {x}")