Advertisement
brandizzi

Python not demanding declaration

Jul 23rd, 2014
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement