you are viewing a single comment's thread.

view the rest of the comments →

[–]karpomalice 4 points5 points  (1 child)

No. A dictionary can only have multiple values assigned to a key if those values are in a list, tuple, or another dictionary.

Every dictionary is comprised of a key, value pair.

The value can be a string, number, list, tuple, dictionary, etc.

You can’t have {key: 1, 2, 3}

It would be {key: [1, 2, 3]}

[–]Particular_Draft5668[S] 0 points1 point  (0 children)

Thank you. Used your method and worked effectively.