Created
February 20, 2017 00:36
-
-
Save frankV/56f8001e3b8cb2b6b01e9ba845f5708e to your computer and use it in GitHub Desktop.
Junior Backend Python Interview Questions
This file contains hidden or 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 extendList(val, list=[]): | |
list.append(val) | |
return list | |
list1 = extendList(10) | |
list2 = extendList(123,[]) | |
list3 = extendList('a') | |
print "list1 = %s" % list1 | |
print "list2 = %s" % list2 | |
print "list3 = %s" % list3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment