So I have a dictionary with data
dict = {1:["code: 1", "date: 01-01-2000", "date: 01-02-2000", "date: 01-03-2000", "spent: 20$"]}
I want to get this output:
{1:["code: 1", "date: 01-01-2000", "spent: 20$"]}
So basically I only want the first element that have "date:" and the rest of elements
How can i obtain this?