Coding Tip: Replacing a list without loosing link
 
my_list = [1,2,3] def replace_list(ll): ll[:] = [4,5,6] replace_list(my_list) print(my_list)
Created at: 2017/12/18 12:56; Updated at: 2018/01/06 20:56
python
tips
by:
40
oduvan
Rating: 0
Sign up to vote
Share:
Fresh Awesome
2
deathray
4
amurashka
10
FATPIG
You ClassRoom Demo is Ready
With the new tool CheckiO ClassRoom, you will be able to analyze your students' progress, have your own leaderboard, change missions order on the map, and so on.