I know there have been multiple versions of questions like this but i can't seem to be able to put it together.
What I want: I have a string like "My name is Peter". Then I have a string such as "NFTY". What I want to do in python is go through and swap every occurrence of N with F and every occurrence of T with Y in the original string. (I.e. My name is Peter will now become "My fame is Peyer"
I'd want to do it such that the case of "NFTY" doesn't matter as long as the function sees that N has occurred in the original string whether its upper or lower case.
Any help would be appreciated!