python string equality check in if code example Example: python string equality str = "hello" print("hello" == "hello") # prints True