Question: 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,

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

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 Databases Questions!