Answer the question
In order to leave comments, you need to log in
How to create a multidimensional array?
rates = []
i = 0
for currency in tree.findall('currency'):
rates.append([i])
rates[i]['valuta'] = currency.find('title_alias').text
valuta = currency.find('rates')
# rates[i]['buy'] = valuta.find('buy_rate')
# rates['sell'] = valuta.find('sell_rate').text
i += 1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question