This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Dennis Sweeney
Recipients Dennis Sweeney, mablue
Date 2021-02-05.17:55:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
You could express this as:

a = [input() for i in range(10)]
x = input()
print(x in a)

This is more clear IMO, because if you want to have something happen before something else, it's clearest to put them on separate lines, one after the other.

I also don't like using "a have x" to duplicate the behavior of "x in a", because,
per PEP 20: "There should be one-- and preferably only one --obvious way to do it."
Date User Action Args
2021-02-05 17:55:26Dennis Sweeneysetrecipients: + Dennis Sweeney, mablue
2021-02-05 17:55:26Dennis Sweeneysetmessageid: <>
2021-02-05 17:55:26Dennis Sweeneylinkissue43134 messages
2021-02-05 17:55:26Dennis Sweeneycreate