I am trying for a roaster method, where I have want to loop over the same list and print primary,secondary and change the primary and secondary every week,if weekday is monday.
team = [('abc', 123),('def', 343),('ghi', 345),('jkl', 453)]
Week 1:- primary :- ('abc', 123) secondary :- ('def', 343)
Week 2:- primary:- ('ghi', 345) secondary:- ('jkl', 453)
Week 3:- primary:- ('jkl', 453) secondary:-('abc', 123)
And so on.
team = [('abc', 123),('def', 343),('ghi', 345),('jkl', 453)]
count = 0
if week_day == 'Wed':
if True:
count += 1
print('count', count)
print('pri', team[count][0])
print('sec_name', team[count + 1])