I have a list of dic
MyList=[
{'Buy': 'Yes', 'date': monday, 'item': '1234'},
{'Buy': 'Yes', 'date': monday, 'item': '4'},
{'Buy': 'Yes', 'date': sunday, 'item': '134'},
{'Buy': 'Yes', 'date': sunday, 'item': '124'},
{'Buy': 'Yes', 'date': friday, 'item': '14'},
{'Buy': 'Yes', 'date': friday, 'item': '234'}
]
I use a loop
for data in Mylist:
so it will go through all the items
if I want to do the same but I want to choose the begin and the end of le loop for example a loop start from 0 to 3 or a loop from 2 to end how can I do that?
thanks in advance