While loop will be useful with getting input until the scores are right, something like
I would put the conditions in the new function:
for i in range(5): while True: scorehome,scorevisitor=match(Home, Visitor,i+1) if check_score(): break printScoreCard(Home,Visitor,winhome,winvisitor)
I would put the conditions in the new function:
def check_score(): if "score not right": "print warning message" return False "... same for other bad scores" else: scorevisitor > scorehome winvisitor= winvisitor+1 return TrueDo you understand what I mean and how the code works?