Question: You did well enough with your last assignment from the power - ups team that they ve asked you to assist on another task. They
You did well enough with your last assignment from the powerups team that theyve asked you to assist on another task. Theyve asked you to implement the function that selects the powerup from the powerup pool. Write the function selectpowerupindex powerups that takes an integer index and a list of string powerups as arguments. The function should print the powerup at the index provided. Because of some legacy code that has existed in the codebase since the Wii U the index can be negative and it can exceed the number of items in the pool of powerups. Valid negative indexes should print the appropriate item. Indexes outside the length of the list should print nothing.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
