I want to change the first element of a string with the last element.
def change(string):
    for i in range(16):
        helper = string[i]
        string[i]=string[15-i]
        string[15-i]=helper
    return string
print (change("abcdefghijklmnop"))
Error Output:
string[i]=helper2[0]
TypeError: 'str' object does not support item assignment
 
     
     
     
     
    