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

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations