+ 2

What is 'is' argument in Python

plz explain 'is' argument in Python using example. also differentiate between us and ==

9th Dec 2017, 9:22 AM
Gamer
Gamer - avatar
3 Respuestas
+ 3
"is" means the same object "==" means the same value list1 = [1,2,3] list2 = [1,2,3] list2 == list1 but list2 is not list1 list3 = list1 list3 is list1 because list1 is not duplicated but refers to the same object
9th Dec 2017, 10:08 AM
Oma Falk
Oma Falk - avatar
+ 2
I want "is" explanation
9th Dec 2017, 9:29 AM
Gamer
Gamer - avatar