How To Replace Elements In A List Python