“Int dan float ular” Kode Jawaban

Int dan float ular


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

Int dan float ular

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..

Jawaban yang mirip dengan “Int dan float ular”

Pertanyaan yang mirip dengan “Int dan float ular”

Lebih banyak jawaban terkait untuk “Int dan float ular” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya