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