Here is my code:
def bitcoin_to_usd(btc):
amount = btc * 527
print(amount)
btc = input("Input your Bitcoins amount: ")
bitcoin_to_usd(btc)
I want to get Bitcoin number from user then I want to calculate how much USD is it.
That code gives me repetition of the input. Such as if you input 2 it returns 222222222222222222222222.... doesn't calculate it.
My Python version is 3.4.1 and I am using PyCharm.
Any ideas?