brandizzi

Python not demanding declaration

Jul 23rd, 2014
273
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >>> def h(x):
  2. ...   y = 3*abs(x) + 1
  3. ...   if y < x:
  4. ...     z = minha_funcao_nao_definida_em_lugar_algum()  
  5. ...   return y
  6. ...
  7. >>> h(-2)
  8. 7
RAW Paste Data