Question: Create a Python program to: Track how many battles each Avenger has won. Display the total number of victories for each Avenger. Calculate the total
Create a Python program to:
Track how many battles each Avenger has won.
Display the total number of victories for each Avenger.
Calculate the total number of battles won by all Avengers.
Avengers and their Initial Victories:
Iron Man: victories
Captain America: victories
Thor: victories
Black Widow: victories
Hulk: victories
Hawkeye: victory
Tasks:
Step : Create Lists for Avengers and their victories
Step : Use a for loop to display the current number of victories for each
Avenger
Step : Add new victories to the Avengers use list indexing
Step : Display the updated list of victories for each avenger
Step : Calculate the total number of victories by all Avengers
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
