subject

You are writing a program to analyze the games played by a sports team. You are going to compare the wins and losses at home to the wins and losses at away games. The members of season are lists that contain where the game was played (home or away), your team's score and the opponent's score. The following is a very small sample of what season contains. season = [ ['home',10, 2], ['away',3, 5], ['home', 5, 2], ['home', 3, 7] ]
What is the missing line of code of the following portion of the program?
season = [ ['home',10, 2], ['away',3, 5], ['home', 5, 2], ['home', 3, 7] ]
homeWins = 0
homeLosses = 0
awayWins = 0
awayLosses = 0
for item in season:

if item[1] > item[2]:
homeWins = homeWins + 1
else:
homeLosses = homeLosses + 1

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
The most accurate readings that you can take on an analog vom are when the meter's pointer is at the a. center scale. b. extreme right. c. near right. d. extreme left.
Answers: 1
question
Computers and Technology, 23.06.2019 19:00
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Jean has kept the content of her website limited to what is important; she has also ensured that the text follows a particular style and color all throughout her website. which website features has jean kept in mind? jean has limited the content of her website to what is important; this ensures (clarity, simplicity, harmony and unity) of the content. she has also formatted the text in a particular style and color throughout her website, ensuring (balance, simplicity, consistency)
Answers: 2
You know the right answer?
You are writing a program to analyze the games played by a sports team. You are going to compare the...
Questions
question
Chemistry, 17.04.2020 20:17
question
Mathematics, 17.04.2020 20:17
question
Computers and Technology, 17.04.2020 20:18
Questions on the website: 13722367