Skip to content
Advertisement

Tag: if-statement

Splitting list in two new lists python [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 months ago. Improve this question in Python I have a list with 96 entries, some are positiv, some are negative. I now want to new lists with 96 entries each.

Continue in if conditional python loop is not working

Results are I was expecting that it would identify the first pattern DS in the first string in list a, then move to next element. However, it proceed to identify DY as well. What am I doing incorrectly? Any help is appreciated. Thanks Answer Try to replace continue with break like this Output: сontinue actually means that you go to

Discord.py bot ignoring channel.message.id

I have a bot that every 1 to 12 hours sends a random message into a specific channel (the channel that the command !random is used in). A certain handful of these message are yes/no questions, and I want to make it that the bot will respond if somebody says yes/no. The code works, the issue is I want the

Advertisement