title: How to find out if six-digit consecutive numbers (such as 123456, 345678, and 789012) appears anywhere in a given string
body: <p>I have done something but I believe there must be some easy way to do it. </p>
  
  <pre><code>import re
  
  data = open('somestring.txt','r')
  whole_text = data.read().replace('\n','')
  whole_text = whole_text.replace(' ','')
  
  L1 ='0123456789'
  List=[]
  for i in range(1,11):
      L = ''
      for j in range(6):
          s = str((int(L1[j])+i-1)%10)
          L += s
      List.append(L)
  
  y = re.findall(somestring)
  </code></pre>