sidorenkov

Untitled

Jun 25th, 2021
1,179
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #А вот это работает не так, как я ожидаю
  2. def change_list(_list):
  3.     _list = [3, 4, 5]
  4.    
  5. _list = [1, 2, 3]
  6. print("Before change:")
  7. print(_list)
  8.  
  9. change_list(_list)
  10. print("After change:")
  11. print(_list)
RAW Paste Data