Assume in a video game, there are three agents named Rage, Jett, and Sage. Each of these agents has three normal skills along with an ultimate skill. Each of these skills have a damage score. To calculate the additive of this score, you need to use the following formula. additive_damage_score = sum of the Normal Skill Damage + Ultimate skill damage Now, write a Python program that will detect the agent’s name using “additive_damage_score” the from a given dictionary where the keys are "Normal Skills", "Ultimate Skill" and the values are the damages due to the use of those skills on the opponents. • If the additive damage score is less than or equal to 70, then the agent’s name is “Rage”. • If the additive damage score is greater than 70 and less than or equal to 100, then the agent’s name is “Jett”. • Otherwise, the agent’s name is “Sage”.
n_s = list(map(int, input('Inter Normal skills: ').split()))
u_s = int(input('Enter Ultimate Skill: '))
d = {
'Normal Skills': n_s,
'Ultimate Skill': u_s,
}
additive_damage_score = sum(d['Normal Skills']) + d['Ultimate Skill']
if additive_damage_score <= 70:
print('Rage')
elif 70 < additive_damage_score <= 100:
print('Jett')
else:
print('Each')
Comments
Leave a comment