Answers for "list in a function python"

1

pass a list to a function in python

def someFunc(myList = [], *args):
    for x in myList:
        print x
Posted by: Guest on November-13-2020
2

list in python

myList = ["Test", 419]
myList.append(10)
myList.append("my code")
print(myList)
Posted by: Guest on October-06-2020

Code answers related to "list in a function python"

Python Answers by Framework

Browse Popular Code Answers by Language