N
N
nesterso2022-02-18 23:10:08
Python
nesterso, 2022-02-18 23:10:08

How to make the data entered by the user recorded in the list?

Help, how to make the user fill in the data, and they go to the list
Let 's say
n1 : text1
n2 : text2
n3 : text3
spisok = [will be what the user entered in n1, n2, n3]
NOT input. And when a user in VK is put in a conversation with a form, and he fills it out.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kapp1, 2022-02-18
@kapp1

You get the message and do .append("message here")
You know better how your bot works.

M
Master Ruby, 2022-02-18
@Dunaevlad

def user(**kwargs):
    return [kwargs]


if __name__ == "__main__":
    data = user(n1="Text1", n2="Text2", n3="Text3")
    print(data)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question