Skip to content

Instantly share code, notes, and snippets.

@issackelly
Created August 30, 2011 14:44
Show Gist options
  • Save issackelly/1181057 to your computer and use it in GitHub Desktop.
Save issackelly/1181057 to your computer and use it in GitHub Desktop.
>>> def funkyTon(foo, bar, baz=None):
... return [i*i for i in range(foo, bar)]
...
>>> funkyTon(1, baz=3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: funkyTon() takes at least 2 arguments (2 given)
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment