-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvali_cripto.py
More file actions
39 lines (39 loc) · 1.67 KB
/
vali_cripto.py
File metadata and controls
39 lines (39 loc) · 1.67 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
from datetime import datetime
#Bitcoin(BTC)
#Cardano(ADA)
#Ethereum(Ether)
#Bitcoin cash(BCH)
#Stellar(XLM)
#Chainlink(LINK)
#EOS(IO.EOS)
print("******************************************************")
print(" ************BIENVENIDOS************")
print("******************************************************")
print(" Moneda disponibles en consulta")
print(" _____________________________")
print(" BTC, BCC, LTC, ETH, ETC , XRP")
print("******************************************************")
criptos = ["BTC","BCC","LTC","ETH","ETC","XRP"]
count=0
acumulado=0
while count<3 :
cripto = input("Ingrese el Nombre de la Moneda:->>").upper()
if cripto in criptos:
cantidad = float(input("Ingrese la cantidad de "+cripto +":->>"))
cotizacion = float(input("Indique la cotización en USD de "+cripto+":->>"))
acumulado=acumulado+(cantidad*cotizacion)
count+=1
else:
print("Moneda Incorrecta, (intente nuevamente)")
hora = datetime.now()
print("*********************************************************")
print(" ************INFORME************")
print("*********************************************************")
print(" Dia y hora, en la que se realizo la consulta")
print(" _______________________________________")
print(hora.strftime(" B%A %d/%B/%Y %I:%M:%S:%p"))
print(" _______________________________________")
print("*********************************************************")
print("El saldo acumulado en dolares americanos es :usd$"+str(acumulado))
print("*********************************************************")
print("")