What is 'is' argument in Python | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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