Question: What Python code should you place in the blank to collect the return value of winner in a variable in order to increase th value
What Python code should you place in the blank to collect the return value of winner in a variable in order to increase th value of tally by one when the user reports winning the match? def winner(match winner): if match winner: print ("Congratulations!") print ("Adding 1 point to your tally.") return 1 else: print ("Okay. Maybe next time.") return 0 ta11y=0 outcome = input ("Did you win this match? Y or N ") a. total score to tally b. total gcote - tally + match winner c. tal1y + winner (outcome - "Y") d. ta11y tw winner (ta12y to winner (outcone))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
