forked from tdwojak/Python2017
8 lines
169 B
Python
8 lines
169 B
Python
|
from requests import get
|
||
|
from json import loads
|
||
|
|
||
|
plik = get('https://api.fixer.io/latest')
|
||
|
plik_json = loads(plik.text)
|
||
|
|
||
|
waluta = 'PLN'
|
||
|
print(plik_json['rates'][waluta])
|