Python Dictionary with Multiple Values per Key | Python Dictionary Tutorial #9

preview_player
Показать описание
Learn how to create a Python dictionary with Multiple values per key.

#python #programming #coding #development #pythontutorials #python programming #100daysofcoding #100daysofpython #100daychallenge
Рекомендации по теме
Комментарии
Автор

What if I want to update the value in a specific item within that list?

Let's say, my keys are usernames, and the first item in the list of values represent whether they got an "INFO" log from a system task and the second item in the list represents an "ERROR" from the same system log. If I iterate through the log with both INFO and ERROR lines, how do I update the values within that list accordingly?

Also, once I've done this, I'd like to create a CSV from this dictionary. Will a dictionary like this transform into a CSV file with 3 columns?

gvzeoic
join shbcf.ru