filmov
tv
Python Quiz 39 #pythonquiz #learningpython #python

Показать описание
In Python,
What will be the output of this code?
a = [1, 2, 3]
b = a
c = [1, 2, 3]
print(a is b)
print(a is c)
print(b is c)
(a) True, False, False
(b) True, True, True
(c) False, False, False
(d) True, False, True
Python Quiz #pythonoperators #learningpython #python
What will be the output of this code?
a = [1, 2, 3]
b = a
c = [1, 2, 3]
print(a is b)
print(a is c)
print(b is c)
(a) True, False, False
(b) True, True, True
(c) False, False, False
(d) True, False, True
Python Quiz #pythonoperators #learningpython #python