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