title: Create a list of numbers dividable by certain numbers by using the command « filter() »
body: <p>I’m on Python) I have to use filter()  to create a list of all numbers from 1 to 100 (inclusive) that are dividable by 7, 9 and 42. I wrote this code, however, when I start it, it does not give me the right solutions. Do you know where the problem is ?</p>
  <pre><code>listnumbers = []
  for x in range (1, 101):
      x = str(x)
      listnumbers.append(x)
  print (listnumbers)
  
  def dividable(k):
      for t in k:
          if int(t) % 7 == 0:
              return True
          if int(t) % 9 == 0:
              return True
          if int(t) % 42 == 0:
              return True
          else:
              return False
      return dividable
  
  s2u = list(filter(dividable, listnumbers))
  
  for q in s2u:
      print(q)
  </code></pre>