S
S
SHADRIN2020-06-06 08:01:40
Python
SHADRIN, 2020-06-06 08:01:40

How to make a dictionary with multiple values?

It is necessary to make dictionaries not with 1 value, but several, how to implement it?

Example:
data = {key: 'user_name', 'user_surname', 'user_phone'}

How to write and handle this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-06-06
@shadrin_ss

data = {key: ['user_name', 'user_surname', 'user_phone']}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question