In my first week of learning cs and working on my first project assignment (in python3) I have hit a roadblock. There is an inbuilt function in the project which I'm unable to access The function basically does this-
"A test dice is deterministic: it always cycles through a fixed sequence of values that are passed as arguments. Test dice are generated by the make_test_dice
function."
test_dice = make_test_dice(4, 1, 2)
>>>test_dice()
4
1 on the 2nd call, 2 on the 3rd call and 4 on the 4th call
Now after researching for quite a while I came across the args and yield function for doing this job but I've been unable to implement it due to errors.
Any help on implementing this defined function would be appreciated!