demo_ref_string_isidentifier.py:
txt = "Demo" x = txt.isidentifier() print(x)
➜ begtut>python demo_string_isidentifier.py
True