info = vk_api.users.search(q=get_id.group(1), count=30, fields='city, country', v=5.103)
i = 0
while i <= 29:
print(i)
i += 1
if 'city' and 'country' in info['items'][i]:
city = info['items'][i]['city']['title']
country = info['items'][i]['country']['title']
print(city, country)
if country + '/' + city == params.group(1):
print('Найдены совпадения -> vk.com/id{}'.format(info['items'][i]['id']))
выдает ошибку
if 'city' and 'country' in info['items'][i]:
IndexError: list index out of range
как исправить?