2021-10-28

How do I give the list an index name?

I've seen something like this construction somewhere:

list.append({
   'title': scName,
   'link': scLink,
})

print('Names:', list['title'])
print('Links:', list['link'])

Can you please show a working example?



from Recent Questions - Stack Overflow https://ift.tt/3CqHZ4X
https://ift.tt/eA8V8J

No comments:

Post a Comment