What is the use of in operator ?
Question :
What is the use of in operator ?
The in operator cheeks whether the given element is contained in the tuple or not. For example,
>>> 4 in ( 2, 4, 6, 8 )
True
>>> 5 in ( 2, 4, 6, 8 )
False
What is the use of in operator ?
What is the use of in operator ?
The in operator cheeks whether the given element is contained in the tuple or not. For example,
>>> 4 in ( 2, 4, 6, 8 )
True
>>> 5 in ( 2, 4, 6, 8 )
False