Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

x= [10] def List_ex(): x.append(20) def add_list(): x=[30,40] x.append(50) print (x) List_ex() print (x) add_list() print (x)

x= [10]
def List_ex():
    x.append(20)
def add_list():
    x=[30,40]
    x.append(50)
print (x)
List_ex()
print (x)
add_list()
print (x)

 
PREVIOUS NEXT
Tagged: #def #def #print #print #print
ADD COMMENT
Topic
Name
5+3 =