Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a function that take a list of integer as argument, and return an integer. Each element in the list is the power of an
Create a function that take a list of integer as argument, and return an integer. Each element in the list is the power of an enemy. When the power of an enemy is superior to the power of the saiyan by 3 or more, the saiyan gain super saiyan level equivalent to the current enemy power - super saiyan level 1. When the power of an enemy is lower than the power of the salyan by 2 or more, the saiyan loose 1 super saiyan level. The output of the function must be the super saiyan level after dealing with all ejemies, in order. Examples
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started