Code with json dumps:
def intro ():
RUB_BANK = connection.call('GET', '/buy-bitcoins-online/RUB/transfers-with-specific-bank/.json').json()
amount2 = json.dumps(RUB_BANK['data']['ad_list'][0]['data']['temp_price'])
print(amount2)
intro()
This code work. It gives me correct result:
"916000.00"
But if i try:
def intro ():
RUB_BANK = connection.call('GET', '/buy-bitcoins-online/RUB/transfers-with-specific-bank/.json').json()
amount2 = json.dumps(RUB_BANK['data']['ad_list'][0]['data']['temp_price'])
print(amount2 + 20000)
intro()
Give me traceback
TypeError: can only concatenate str (not "int") to str
I need to plus 20000 to 916000.00 How to do it?