Sunday, May 1, 2016

How to replace something in a list in Python?


IM a beginner in computer science. I need help replacing something in a list. Btw, I do NOT know the index because I made a pos system therefore, the item that I want to replace varies according to the users decision. Example:
[Chicken, pencil, ipad]
i want to replace an item. HOW?

Read more: How to replace something in a list in Python?