-
-
Notifications
You must be signed in to change notification settings - Fork 4
new tag !in #211
Copy link
Copy link
Open
Labels
area: tagsRelated to the @Python bot's tagsRelated to the @Python bot's tagstype: additionRequest to add something newRequest to add something new
Description
Metadata
Metadata
Assignees
Labels
area: tagsRelated to the @Python bot's tagsRelated to the @Python bot's tagstype: additionRequest to add something newRequest to add something new
Type
Fields
Give feedbackNo fields configured for issues without a type.
Heya.
I wrote a message for the bot for !in
I read through the !contribute bit but not too sure how to submit. If there’s a different way to do this, please let me know.
Feed back is of course welcome and highly appreciated.
I have another message regarding the use of a condition in if. Let me know if I can post that here as well or should do something else with it.
========= start of message ====
in
used to see if a is part of b.
a in breturn a boolean True/False.
Where b is an iterable.
Example
The result of the function can be used directly to enter an if statement.
Rather do this:
Than this:
====== end of message =====
Potentially also part of the message, although I’m not too sure if it is the best way to do things:
=== optional ====
If a is a list we have to use
all():==== end ====
Have a goodie!
-korty.codes