Answer the question
In order to leave comments, you need to log in
Why does the out of range error occur?
import requests
def parse(list, poffsetids):
posts = []
for i in list:
posts.insert(i, requests.get('https://api.vk.com/method/wall.get', params={'owner_id': list[i - 1], 'offset': poffsetids[i - 1]}))
return posts
print(parse([-61969218, -87156278, -43528947],[54, 56, 76]))
IndexError: list index out of range
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