Computer Science, asked by justarandomperson922, 3 months ago

Write a python program to check whether inputted string has space or not. ​

Answers

Answered by piyush2569
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