How to output Python data from XML and JSON array?

I figured out how to send GET requests, the server responds and that's all right. There is some code which will send the request and print the response received.
import requests

r = requests.get('https://privat24.privatbank.ua/p24/accountorder?oper=prp&PUREXML&apicour&country=ru')

print(r.text)

The answer is displayed as what came from the server. How to get data from it and display in a convenient format? In this case we get the current exchange rate and the output needs to something like this:
The dollar: 61,7235
The Euro: 70,0315


And preferably all the same only with JSON.
July 8th 19 at 15:50
2 answers
July 8th 19 at 15:52
Solution
July 8th 19 at 15:54

Find more questions by tags TelegramPythonJSONXML