Answer the question
In order to leave comments, you need to log in
How to take a certain number of words from the user's text?
Hello, I am doing a "multi-kick" command and it is necessary that after this command a certain number of words be taken, and if this number is exceeded, an error will come out.
I tried this, but everything is mixed into one list:
text = event.obj['text'].split(' ', maxsplit=1)
if text[0] == "мульти-кик":
print(text[1:])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question