Advertisement
BlackArrow502

Untitled

Apr 22nd, 2025
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. def set_list(list):
  2.     list = ["A", "B", "C"]
  3.     return list
  4.  
  5. def add(list):
  6.     list.append("D")
  7.     return list
  8.  
  9. my_list = ["E"]
  10. print(set_list(my_list))
  11. print(add(my_list))
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement