#isspace() is a built-in method used for string handling string = "My name is" print(string.isspace()) #It will print True string = "Hello" print(string.isspace()) #It will print True