Created
January 15, 2018 05:40
-
-
Save frodo821/29faf0fbd666f642f2dfd1615b7f825e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def overloaded(a): | |
print(a) | |
def overloaded(a, b): | |
print(a, b) | |
#------ | |
>>> overloaded(1) | |
Traceback (most recent call last): | |
File "<pyshell#6>", line 1, in <module> | |
overloaded(1) | |
TypeError: overloaded() missing 1 required positional argument: 'b' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment