← Lesson
Compare and Combine Values
Joeven
Run
Reset
Python loads on first run
step = 3 max_steps = 8 print("equal", step == 3) print("not equal", step != max_steps) print("under budget", step < max_steps) print("search" in "search the web") print("error" in "terror") error = None print("error is None", error is None) a = [1, 2] b = [1, 2] print("same value", a == b) print("same object", a is b) print("and", True and step < max_steps) print("or default", "" or "guest") print("not", not True)
Run to execute this in your browser. Nothing is sent to a server.