The Boss Is Crushing The Tank
In World of Software Engineering, the raid boss Ragnaros is unleashing a triple-hit combo on the warrior tank.
Each hit deals a different amount of damage.
We need to calculate the total damage taken by the warrior tank.
Functions can accept more than one input.
Each input is called a parameter.
The order matters.
The first argument passed in goes to the first parameter.
The second argument goes to the second parameter.
And so on.
Each input is called a parameter.
The order matters.
The first argument passed in goes to the first parameter.
The second argument goes to the second parameter.
And so on.
Example structure:
a = 10
b = 20
c = 30
def example(a, b, c):
return a + b + c
When called like this:example(10, 20, 30)The function receives:
a = 10
b = 20
c = 30
Your Task:
Complete the function so it correctly calculates the total damage from Ragnaros' three attacks.
Do not change anything else.
Complete the function so it correctly calculates the total damage from Ragnaros' three attacks.
Do not change anything else.
Complete the triple attack damage function
def calculate_total_damage(hit_one, hit_two, hit_three):
total =
return total
first_hit = 120
second_hit = 180
third_hit = 150
tank_damage = calculate_total_damage(first_hit, second_hit, third_hit)
print("Total damage taken:", tank_damage)