Question: Gain experience manipulating lists. Continue gaining experience using functions, iteration and boolean expressions. Background In a soccer match, a win is worth 3 points, a
Gain experience manipulating lists.
Continue gaining experience using functions, iteration and boolean expressions.
Background
In a soccer match, a win is worth points, a tie is worth point, and a loss is worth points. Replace the pass construct in each function with the necessary Python code. There will always be at least one legal combination of wins, ties and losses.
Grading points
points The output format is matched exactly.
points Your program will be graded using a different value for soccerseasons. For each season that produces the correct output, you will earn point.
example output:
Season: Games Played: Points earned:
Possible WinTieLoss Records
Season: Games Played: Points earned:
Possible WinTieLoss Records
Season: Games Played: Points earned:
Possible WinTieLoss Records
Season: Games Played: Points earned:
Possible WinTieLoss Records
python code:
def processseasonseason gamesplayed, pointsearned:
printSeason: strseason Games Played: strgamesplayed
Points earned: strpointsearned
printPossible WinTieLoss Records"
print
pass
print
#
def processseasonsseasons:
pass
#
def main:
# format of list: seasongames, seasonpointsseasongames, seasonpoints etc.
soccerseasons
processseasonssoccerseasons
printsoccerseasons
printprocessseason
#
main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
