/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
- 2 votes128 views4 answers
- 0 vote101 views1 answer
- 1 vote124 views1 answer
- 4 votes92 views1 answer
- 12 votes103 views3 answers
- 1 vote113 views1 answer
- 7 votes108 views3 answers
- 1 vote110 views1 answer
- -2 votes105 views2 answers
- 1 vote107 views1 answer