Skip to content

Instantly share code, notes, and snippets.

@frankV
Created February 20, 2017 00:36
Show Gist options
  • Save frankV/56f8001e3b8cb2b6b01e9ba845f5708e to your computer and use it in GitHub Desktop.
Save frankV/56f8001e3b8cb2b6b01e9ba845f5708e to your computer and use it in GitHub Desktop.
Junior Backend Python Interview Questions
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