- Learn Python in 7 Days
- Mohit Bhaskar N. Das
- 67字
- 2021-07-09 20:40:27
Membership operators
Python has two membership operators to test the membership in a sequence, such as a string, list, tuple, and others:

The following screenshot will make it clearer for you:

In the preceding screenshot, we try to search for the character, 'o', in the string, 'John', and it returns True. However, 'k' is not present in the string, and hence, it returns False.
推薦閱讀
- 在最好的年紀(jì)學(xué)Python:小學(xué)生趣味編程
- Kubernetes實(shí)戰(zhàn)
- SpringMVC+MyBatis快速開發(fā)與項(xiàng)目實(shí)戰(zhàn)
- Linux C/C++服務(wù)器開發(fā)實(shí)踐
- Python Tools for Visual Studio
- VMware vSphere 6.7虛擬化架構(gòu)實(shí)戰(zhàn)指南
- The Computer Vision Workshop
- 小程序,巧運(yùn)營(yíng):微信小程序運(yùn)營(yíng)招式大全
- 青少年P(guān)ython編程入門
- C# 8.0核心技術(shù)指南(原書第8版)
- Java編程的邏輯
- Unity 2D Game Development Cookbook
- Julia高性能科學(xué)計(jì)算(第2版)
- Python圖形化編程(微課版)
- Java EE企業(yè)級(jí)應(yīng)用開發(fā)教程(Spring+Spring MVC+MyBatis)