Example & Tutorial understanding programming in easy ways.

What is the purpose of the 'in' in Python ?

Basically, in is used for groups of elements.

-It is used for searching purpose also.

Example:

l=[1,2,3,4]

if 2 in l:

    print("Present")

Output:

Present 

Read More →