Last active
April 2, 2019 06:36
-
-
Save prmishra/d79697b4519d689498a884b894420866 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 extend_list(val, list=[]): | |
list.append(val) | |
return list | |
list1 = extend_list(10) | |
list2 = extend_list(123, []) | |
list3 = extend_list('a') | |
print("list1 = %s" % list1) | |
print("list2 = %s" % list2) | |
print("list3 = %s" % list3) | |
# python script.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment