Puzzle 13: Explanation
We'll go over the concept of equality and identity in Python.
We'll cover the following...
We'll cover the following...
Try it yourself
Try executing the code below to verify the result:
Press + to interact
Python 3.8
a, b = 12, 3x=a*by=b*aprint(x is y)
Explanation
A Python variable is a name that points to a Python object. When we have two variables (such as x and y), we can ask two questions:
- Equality: Are the objects