Membership Operator & Identity Operator of Python programming language

Membership Operator & Identity Operator :

Membership Operator : in , not in are  membership operator in python programming . These are used for checking whether value exist in the sequence or not

e.g  1 in [1,2,3,4] --> True
       5 not in [1,2,3,4,] -->True

Identity Operator : is , is not are identity operator in python programming. These are used for checking the type of the value

 e.g  x=12 
      type(x) is int ---> True
      type(x) is str ---> False
    


Comments

Popular posts from this blog

Facts and Fallacies of Software Engineering

Feature and drawback of Python Language