0

I want to make a Discord Bot and I am stuck at one thing: I have a music queue, and i only want to delete the first song from it, but the queue is 2 rows deep.

[['url': '...', 'title': '...']['url2': '...','title2': '...']]

I only want to pop the first part, so in the end its

[['url2': '...','title2': '...']]

Ive searched through many Forums but didnt find an answer. Can anyone please help?? Thanks!

  • Just a tip: Consider storing your song records in something like a `class` or [`NamedTuple`](https://stackoverflow.com/a/34573457/3282436), rather than a `dict`. – 0x5453 Sep 15 '21 at 18:56

1 Answers1

0
>>> my_list = [['a','b'],['c','d']]
>>> my_list.pop(0)
['a', 'b']
>>> my_list
[['c', 'd']]
>>>
tomer
  • 144
  • 4