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