“un int et float python” Réponses codées

un int et float python


def aud_brl(amount, From, to):
    ER = 0.42108 
    if From.strip() == 'aud' and to.strip() == 'brl': 
        result = amount/ER 
    elif From.strip() == 'brl' and to.strip() == 'aud': 
        result = amount*ER 

    print(result)

def question(): 
    amount = float(input("Amount: "))
    From = input("From: ") 
    to = input("To: ")

    if (From == 'aud' or From == 'brl') and (to == 'aud' or to == 'brl'): 
        aud_brl(amount, From, to)

question()

Ashamed Armadillo

un int et float python

a_int = 24 
#this is a int

a_float = 3.2883
#this is a float. you can see that it has a difference. it has a . :)
dl.idiot..

Réponses similaires à “un int et float python”

Questions similaires à “un int et float python”

Plus de réponses similaires à “un int et float python” dans Python

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code