This isn’t a bug. It looks like you’re trying to delete item 0 and item 1 (the first two items). So let’s put it in perspective:
This is the guest list:
['Betty the Orchid', 'Rose']
And you call:
del guest_list[0]
The list is now:
['Rose']
And then you call:
del guest_list[1]
But since you deleted the first item earlier, and now there is only one item, then guest_list[1] doesn’t exist. So basically, you just need to change the:
del guest_list[1]
to:
del guest_list[0]
Your code would look like this now:
print(guest_list[1], "You have officially been invited to the 2- seated dinner table :) See you at 6:30 PM!")
print()
del guest_list[0]
del guest_list[0]
print(guest_list)
So this is not a bug, it was just that your second object was non-existent since you deleted the first one and the second became the first.