This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |