Advertisement
pjanu

Mutowalne listy

Feb 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. def funkcja(c):
  2.     copy = c[:]
  3.     copy[0] = 10
  4.     print("Kopia: ", copy)
  5.     c = copy[:]
  6.  
  7.  
  8. c = [5,5,5]
  9. funkcja(c)
  10. print(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement