Day 4, Bug Fixing Exercise 2

Explanation

Line 3 was

new = elements[1]

but it should be
elements[1] = new
The above will successfully replace string 'b' with string 'x'.

Recommended Course

Python Mega Course: Learn Python in 60 Days, Build 20 Apps
Learn Python on Udemy completely in 60 days or less by building 20 real-world applications from web development to data science.