Exercise 7 · Chapter: ListsRequired+50 XP
Remove Item
You have this list:
items = ["pen", "book", "eraser", "ruler"]
Read an item name from input, remove that item from the list, and print the updated list.
Example input:
book
Example output:
['pen', 'eraser', 'ruler']
Need a hint?
3 available · costs 5 XP each
python
Output
Run your code to see the output here.