I need to remove 0 and 2 elements from the list: {usd},{rur} .
What is the easiest way to do this?
I can not change places, but I set the list - API request. Enumeration of indices separated by commas in the del or remove command does not work. A colon is not an option, because they are not in order.
I wrote this:
balances = [{usd},{eur},{rur},{gbp}] del (balances[0], balances[1]) It turns out that I refer to the lists twice, i.e. to API. It slows down the program, right?
balances = [balances[1], balances[3]- Vasiliy Rusin