import re 
# A sample text string where regular expression 
# is searched. 
string = """Hello my Number is 123456789 and 
	my friend's number is 987654321"""
# A sample regular expression to find digits. 
regex = '\d+'
match = re.findall(regex, string) 
m = [1]
if m and m[0]:
  print ("list is true")
else:
  print ("list is empty")
if not m:
  print ("entered for not")

print(match) 

