elena1234

pop() in Python

Apr 14th, 2022 (edited)
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. list_sample = [1, 2, 3, 4, 5]
  2. list_sample.pop(4)
  3. str_list = [str(x) for x in list_sample]
  4. print(" ".join(str_list))
  5.  
Add Comment
Please, Sign In to add comment