[lang-ref] ( remove_nth_character ) ( python )
def test_remove_nth_character_alternative():
# text[:n] + text[n+1:]
text = 'ABCDE'
n = 2
text = text[:n] + text[n+1:]
assert text == 'ABDE'
def test_remove_nth_character_alternative():
# text[:n] + text[n+1:]
text = 'ABCDE'
n = 2
text = text[:n] + text[n+1:]
assert text == 'ABDE'