def next_round(current_round): if current_round < num_questions: return current_round + 1 else: return 0
This function checks to see if the round is less than the number of questions and if it is, returns the next round. If the round is equal to the number of questions, it returns 0.