How python uses the operator in
This article is about how python uses the operator in. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Use the operator in
# # not recommended if fruit = = "apple" or fruit = = "orange" or fruit = = "berry": # multiple judgments # # recommend if fruit in ["apple", "orange", "berry"]: # use in to be more concise thank you for reading! This is the end of this article on "how to use the operator in for python". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!