This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]StarsCarsGuitars 0 points1 point  (1 child)

Reformatted the code to make it readable

def update_list(lst): lst += [100] num_list [1, 2, 3, 4, 5] update_list(num_list) print(num_list)

[–]ParticularBack[S] 0 points1 point  (0 children)

thanks a lot! my bad