/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)
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)
1
- -1 vote159 views1 answer
- 0 vote172 views1 answer
- 0 vote171 views1 answer
- 0 vote165 views1 answer
- 1 vote155 views1 answer
- 1 vote165 views1 answer
- 12 votes162 views2 answers
- 0 vote167 views1 answer
- 0 vote154 views1 answer
- 0 vote186 views1 answer