how to replace an element of a list using list comprehension

Solutions on MaxInterview for how to replace an element of a list using list comprehension by the best coders in the world