Isprintable() method in Python String Module
Isprintable method in string module returns the output as TRUE if the string has only printable characters such as numeric, alphabets, spaces, symbols etc. or else it return the output as FALSE.
Syntax:
str.isprintable()Example-1:
text = "Geneva is surrounded by mountains"
x = text.isprintable()
print(x)
Output:
Example-2:
text = "Geneva is surrounded by views of \nMount Blanc"
x = text.isprintable()
print(x)
Output:
