Run
x = "hello world" if x.endswith("user"): print("The string ENDS with specified value.") else: print("The string DOES NOT END with specified value.")
Output