You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lesson only mentions comparison operators, and it would be great for students to learn more about other types of operators as well. For example, including Identity Operators such as "is" and "is not", and Membership Operators such as "in" and "not in".
Eg. x = [10, 12.5, 'Unknown']
y = [10, 12.5, 'Unknown']
z = x
if x is y:
print('x and y are the same')
else:
print('x and y are different')
We can showcase why x and y are different even though they contain the same content and the difference between "is" and "==".
The text was updated successfully, but these errors were encountered:
The lesson only mentions comparison operators, and it would be great for students to learn more about other types of operators as well. For example, including Identity Operators such as "is" and "is not", and Membership Operators such as "in" and "not in".
Eg. x = [10, 12.5, 'Unknown']
y = [10, 12.5, 'Unknown']
z = x
if x is y:
print('x and y are the same')
else:
print('x and y are different')
We can showcase why x and y are different even though they contain the same content and the difference between "is" and "==".
The text was updated successfully, but these errors were encountered: