title: Function as a returned value, Python
body: <p>I am to return a function such that:</p>
  
  <pre><code>add1 = make_adder(1)
  add1(5)
  #Result: 6
  
  make_adder(5)(10)
  #Result: 15
  </code></pre>
  
  <p>I currently have </p>
  
  <pre><code>def make_adder(n):
  
      return lambda n: n+1
  
  add1 = make_adder(1)
  </code></pre>
  
  <p>** Mistake noted!!*</p>
  
  <p>BUT
  I have another similiar question where I need to check where the numbers match each other.</p>
  
  <pre><code>def is_same(x,y): 
      return x == y 
  
  def make_verifier(key): 
      return lambda n: is_same(262010771,key ) 
  check_password = make_verifier(262010771) 
  </code></pre>
  
  <p><br/> If the key is having a different number, I am supposed to get a False, but I do not get where it is wrong</p>