Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. f = [14, 23, 37]
  2.  
  3. def replace(g):
  4.     g = [17, 28, 45]
  5.     print("g =", g)
  6.  
  7. >>> replace(f)
  8. g = [17, 28, 45]
  9. >>> f
  10. [14, 23, 37]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement