Python Basic Tutorials

Python is a high level general purpose programming language which has a clear/easy learning curve. Python programming language is massively used in various domains like Artificial Intelligence, Data Science, Web Development, Utilities Tools and Scripts and many more

Python is a Programming language, and the default Python we use is written in C programming language which is also referred to as CPython (Python implementation in C). There are various implementation of Python Programming language i.e Jython(in JAVA), Skulpt(in JS) e.t.c

To make everything easy: We refer CPython as Python

Python Membership Operators

Membership operators are those operators which are used to check whether the elements exist or not within a List, Tuple, Dictionary, Set, Strings.

in and not in are the example of Python Membership Operators.

in: Returns True if the member is present in the iterables.

not in: Returns True if the member is not present in the iterables.

Example

>>>students_list=['Harry','Tom','John','Peter','Jack']

>>>'Harry' in students_list
    True

>>>'Harry' not in students_list
    False

>>>'Angila' in students_list
    False