The syntax of isspace method()
A str.isspace()
B str.(isspace)
C str(isspace)
D none of the above
Clear selection
Answers
Answered by
2
s = '\t \n' if s. isspace() == True: print('All whitespace characters') else: print('Contains non-whitespace characters') s = '2+2 = 4' if s. isspace() == True: print('All whitespace characters') else: print('Contains non-whitespace characters. ')
Similar questions