program-
import re
print("Enter string")
s=input()
#first way
for i in s:
if i==" ":
print("There is a white space in between the string")
i=0
break
if i!=0:
print("No white space present in string")
#second way using regular expression
x=re.search("s",s)
if x:
print("There is a white space in between the string")
else:
print("No white space present in string")
Enter string
this is the string
There is a white space in between the string
There is a white space in between the string
Enter string
programming
No white space present in string
No white space present in string