I am working on some code in python, here I want to work on different indexes of a single word. For example, I took input from user in a string. If user enters "Banana" than I cant modify any index of this word say 2nd or 3rd index as it is a string. So my question is how can I convert this string to a list so that I can access and edit each letter of this word? Or is there any method that I take input in list with each letter on each index not complete word on first index?
I have tried str.split() but it just removes spaces between the word whereas I am dealing with a single-word string so split do not works with it