Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # membership example
- my_list = [1, 2, 3 ,4]
- if 1 in my_list:
- print("1 is in my list")
- # identity example
- x, y = 1, 2
- if x is y:
- print("x is y")
- else:
- print("x is not y")
- # comparison example
- # logical example
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement