demo_ref_string_endswith2.py:
txt = "Hello, welcome to my world." x = txt.endswith("my world.") print(x)
C:\Users\My Name>python demo_string_endswith2.py
True