demo_ref_string_isprintable2.py:
txt = "Hello!\nAre you #1?" x = txt.isprintable() print(x)
C:\Users\My Name>python demo_string_isprintable2.py
False