sguruapp@gmail.com
facebook vk instagram Телеграм youtube
Назад

Python is operator

The is operator compares two variables and returns True if they refer to the same object. If two variables refer to different objects, the is operator returns False.
Example
a = ["Python", "Swift"]
b = ["Python", "Swift"]
print(a is b)

s = a
print(s is a)

Post in Russian
GURU IS YOUR BEST SOLUTION!