A
A
Alexander Pikeev2020-08-03 20:44:12
Python
Alexander Pikeev, 2020-08-03 20:44:12

Adding an element to a list that is a value in a dictionary?

There is a dictionary: How to add elements to this list?
dct = {'key': [1]}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Pokrovsky, 2020-08-03
@Baryon

dct['key'].append(value)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question