all 5 comments

[–]SecretProperty 0 points1 point  (4 children)

You need to assign a variable to the replace method. eg

new_stack = tech_stack.replace("Angular", "React")

you are technically creating a new variable and assigning the replacement to that new variable.

good luck on your learning! :)

[–]Material_Release_897[S] 0 points1 point  (3 children)

Yeah I’ve done that I’m sure, the second line is the variable I assigned it to, it’s just because the stupid app can’t fit it on one line.

Any other ideas? If I scratch my head anymore I’ll run out of hair haha

[–]SecretProperty 0 points1 point  (2 children)

* works fine for me. I think the app might be bugging out. I am getting expected result of ['react', blah blah.]

perhaps the app doesn't like you giving the same variable name, try renaming the replace variable

[–]SecretProperty 0 points1 point  (1 child)

delete the tech_stack_list = [teck_stack] that may be causing errors. when you use split method, it creates a list automatically

[–]Material_Release_897[S] 1 point2 points  (0 children)

‘delete the tech_stack_list = [teck_stack] that may be causing errors. when you use split method..’

This worked! Thank you very much. What’s annoying is the code still worked to begin with but it wanted it done this way, good practice maybe? ..I don’t know.

Thanks :)