demo_ref_string_endswith2.py:
txt = "Hello, welcome to my world." x = txt.endswith("my world.") print(x)
➜ begtut>python demo_string_endswith2.py
True