Jun-15-2022, 04:49 AM
def transform_nth(str_in, n, transform): return ''.join([str_in[:n], transform(str_in[n]), str_in[n + 1:]]) name = transform_nth("dave", 2, str.upper) print(name)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs