compilar projecto
This commit is contained in:
@ -45,7 +45,8 @@ portfolio_headers = ["data", "moeda", "quantidade", "movimento"]
|
||||
|
||||
# introduzir quantidade de criptomoeda detida
|
||||
qtd_criptomoeda = float(
|
||||
input(f"Introduza valor de {criptomoeda} detida: ").replace(",", "."))
|
||||
input(f"Introduza valor de {criptomoeda} detida: ").replace(",", ".")
|
||||
)
|
||||
|
||||
# se não houver ficheiro 'dados/{criptomoeda}.csv' criar ficheiro
|
||||
caminho_ficheiro_historico_csv = f"./dados/{criptomoeda}.csv"
|
||||
@ -131,9 +132,8 @@ for item in dados:
|
||||
cripto_vs_euro = float(dados[len(dados) - 1][cabecalho[6]])
|
||||
# valor em eur da quantidade de criptomoeda detida
|
||||
print(
|
||||
f"Valor de {qtd_criptomoeda} {criptomoeda} em EUR: {
|
||||
(qtd_criptomoeda * cripto_vs_euro):.2f
|
||||
}€"
|
||||
f"Valor de {qtd_criptomoeda} {criptomoeda} em EUR: \
|
||||
{(qtd_criptomoeda * cripto_vs_euro):.2f}€"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user