Using functions, I would like to copy all items from pool_list and put them as a different list in live_wall then shuffle live_wall only. My list does not get copied (or cloned I guess) nor does it get shuffled. What am I doing wrong ?
import random
pool_list = ["1m1","2m1","3m1","4m1","5m1","6m1","7m1","8m1","9m1"]
live_wall = []
dead_wall = []
def copyPool():
live_wall = list(pool_list)
def shuffleWall():
random.shuffle(live_wall)
copyPool()
shuffleWall()
print(live_wall)
print(pool_list)
print(len(pool_list))
print(len(live_wall))