Answer the question
In order to leave comments, you need to log in
How to do an iteration?
Another question:
How can I iterate here?
def group_members():
group = vk.groups.getMembers(group_id=164445012, fields=['first_name, last_name, online'])
name = group['items'][0]['first_name']
lname = group['items'][0]['last_name']
online = group['items'][0]['online']
iduser = group['items'][0]['id']
if online == 0:
online = 'Не в сети'
else:
online = 'В сети'
print('|', name, lname, '|', 'id' + str(iduser), '|', '==>', online)
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