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: 5 victories
Captain America: 3 victories
Thor: 4 victories
Black Widow: 2 victories
Hulk: 6 victories
Hawkeye: 1 victory
Tasks:
1. Step 1: Create Lists for Avengers and their victories
2. Step 2: Use a for loop to display the current number of victories for each
Avenger
3. Step 3: Add new victories to the Avengers use list indexing
4. Step 4: Display the updated list of victories for each avenger
5. Step 5: 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!