Похожие чаты

Topics= {"test1":323, "test2":33,"test3":52345, "test4":5424,"test5":234324} for topic, chatid in topics.items():

keyboard.append([topic + chatid)])
This will create a list like this:
keyboard = [["test1234"], ["test4234"], ["test6546"], ["tedtg3434"], ["ghth4234"]]

But i want something like this:

keyboard = [["test1234", "test4234"], ["test6546", "tedtg3434"], ["ghth4234"]]

How can i do this?

1 ответов

4 просмотра

keyboard.append([topic, chatid])

Похожие вопросы

Карта сайта