/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 vote190 views1 answer
- 0 vote177 views1 answer
- 0 vote196 views2 answers
- 0 vote189 views4 answers
- 2 votes195 views3 answers
- 0 vote217 views1 answer
- 0 vote191 views1 answer
- 0 vote161 views1 answer
- 3 votes202 views1 answer
- 0 vote211 views1 answer