Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include more types of operators in Lesson 7 conditionals #1062

Open
myatmo opened this issue Aug 2, 2023 · 0 comments
Open

Include more types of operators in Lesson 7 conditionals #1062

myatmo opened this issue Aug 2, 2023 · 0 comments
Labels
type:enhancement Propose enhancement to the lesson

Comments

@myatmo
Copy link

myatmo commented Aug 2, 2023

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 "==".

@AlbertoImg AlbertoImg added the type:enhancement Propose enhancement to the lesson label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Propose enhancement to the lesson
Projects
None yet
Development

No branches or pull requests

2 participants