Ask coding questions

← Back to all posts
Assistance needed with work
ivanholla (0)

Within my code i am trying to work on something to find and replace parts of a list, i've fallen into a problem with .replace working only with a string

For example

List: 1,2,3,3,4,2,2.5
Things to replace: 2 with 10
Wanted output: 1,10,3,3,4,10,10,5

Please note this is only an example and not what i'm trying to do with the work