Write a python program to check whether inputted string has space or not.
Answers
Answered by
2
Answer:
# Python isspace() method example.
# Variable declaration.
str = " " # string contains space.
if str.isspace() == True:
print("It contains space")
else:
print("Not space")
str = "ab cd ef \n"
Similar questions
English,
2 months ago
Math,
2 months ago
Sociology,
2 months ago
English,
5 months ago
India Languages,
10 months ago
India Languages,
10 months ago
India Languages,
10 months ago