I'm new to python and im trying to replace a character while iterating over a string and it my code doesn't work? : Hey so this is the code i currently have:


    letter = raw_input("Replace letter?")
    traversed = raw_input("Traverse in?")
    replacewith = raw_input("Replace with?")
    traverseint = 0
    for i in traversed:
        traverseint = traverseint + 1
        if i == letter:
            traversed[traverseint] = replacewith
            print i
    print(traversed)


