Skip to content

Instantly share code, notes, and snippets.

View 6aPa6aH's full-sized avatar

Ihor Novikov 6aPa6aH

View GitHub Profile
def your_btc():
print('What is Bitcoin price today?')
# Вводимо ціну на біткоін на сьогодні
price = int(input())
print('How much $ do you have?')
# Вводимо кількість $ яка у вас є
cash = int(input())
# Обчислюємо кількість біткоінів, яку можемо придбати
if cash > 0 and price > 0:
btc = cash/price