Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In order to make the game fair, certain power - ups should not be available to players in certain positions. The power - ups team

In order to make the game fair, certain power-ups should not be available to players in certain positions. The power-ups team will handle the logic for which power-ups are available to specific positions. Theyve asked you to write the function remove_from_pool(powerups). To accommodate for level-specific power-ups, the function should take a list of strings describing the powerups as an argument. It should then prompt the user for the name of a power-up to remove from that pool. Finally, it should print the pool without that item. Because different teams will be using this function and capitilazation hasnt been standardized, your function should be case insensitive.
Hint: Use help(str) or go to the Python documentation to read about helpful functions on strings that will let you deal with case sensitivity. You may be especially interested in .lower() and/or .upper(). How could those help you make a case insensitive comparison?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 11G SQL

Authors: Joan Casteel

2nd Edition

1133947360, 978-1133947363

More Books

Students also viewed these Databases questions

Question

Why is the timing of reinforcement techniques important?

Answered: 1 week ago