-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfun_2.py
More file actions
34 lines (34 loc) · 1.33 KB
/
fun_2.py
File metadata and controls
34 lines (34 loc) · 1.33 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
from datetime import datetime
# Bitcoin(BTC)
# Cardano(ADA)
# Ethereum(Ether)
# Bitcoin cash(BCH)
# Stellar(XLM)
# Chainlink(LINK)
# EOS(IO.EOS)
# Ripple(XRP)
def captu_cripto():
criptomoneda = input(" Ingrese el Nombre de la Criptomoneda:")
cantidad = float(input(" Ingrese la cantidad de su Criptomoneda ("+criptomoneda.upper()+"):"))
cotizacion = float(input(" Cotización por USD del día de su : "+criptomoneda.upper()+" US$"))
return cantidad*cotizacion
print("******************************************************")
print(" ************BIENVENIDOS************")
print("******************************************************")
i = 1
suma = 0
while i <= 5:
suma = suma+captu_cripto()
i += 1
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 valor de sus Criptomonedas es : USD$"+str(suma))
print("******************************************************")
print()