Articles → Python → Is Operator In Python

Is Operator In Python






Purpose





Example




list1 = []
list2 = []


if list1 is list2:
    print("True")
else:
    print("False")




list1 = []
list2 = []


list2 = list1

if list1 is list2:
    print("True")
else:
    print("False")





Posted By  -  Karan Gupta
 
Posted On  -  Friday, May 17, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250