Python
2
Вклад в тег
def UpdatePrice():
response = requests.get(url)
json_data = json.loads(response.text)
price = json_data['RUB']
btc = price['last']
return btc
btc = UpdatePrice()