[Python-Dev] New contribution to Python built-in libraries.

2022-08-28 Thread Kiruthik.M.R 11-B
Greetings, I'm Kiruthik from India. I've been studying coding for the past two years. I know that strings are immutable in Python. But, most of the people can't change the elements in the string as default. So, I came up with a solution by creating a function called *strangelt. *This function has t

[Python-Dev] Re: New contribution to Python built-in libraries.

2022-08-28 Thread Damian Shaw
I don't understand the purpose of this function, for example if I run: strangelt("Hello World", 3, "Bye") I get the output: HeByeByeo WorByed What is the common use case for this? And would it not be simpler and faster to implement it with this 1 liner: def strangelt(s,j,m): return s.replace