You can bypass all the list operations with slicing:

S = S[:1] + S[2:]

or more generally

S = S[:Index] + S[Index + 1:]

Many answers to your question (including ones like this) can be found here: How to delete a character from a string using python?. However, that question is nominally about deleting by value, not by index.

Answer from Mad Physicist on Stack Overflow
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ remove-character-in-a-string-at-a-specific-index-in-python
Remove Character in a String at a Specific Index in Python - GeeksforGeeks
July 23, 2025 - String slicing is the simplest and most efficient way to remove a character at a specific index. ... s1 = "Python" # Index of the character to remove idx = 3 # Remove character at the specified index using slicing res = s1[:idx] + s1[idx + 1:] ...
Discussions

Remove char at specific index - python - Stack Overflow
I have a string that has two "0" (str) in it and I want to remove only the "0" (str) at index 4 I have tried calling .replace but obviously that removes all "0", and I cannot find a function that ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Remove substring via index
One other observation, the bytestring solution will only work for ASCII character sets. Unicode is a multi byte standard More on reddit.com
๐ŸŒ r/learnpython
2
2
January 16, 2022
how to remove a character from a string in 3.11.4?
Use the replace method with empty string as the second argument. More on reddit.com
๐ŸŒ r/learnpython
12
0
December 25, 2023
python - Remove multiple indices of a string - Stack Overflow
Using the thoughts you have, either use negative indexes that index from the end of the string, or remove from last to first and you won't have to deal with shifts. ... Strings in Python are not like strings in other languages; so your question about moving indices does not apply in Python. More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
Techie Delight
techiedelight.com โ€บ home โ€บ python โ€บ remove character at a specific index in a python string
Remove character at a specific index in a Python string | Techie Delight
July 7, 2026 - To remove any character from the ... most common approach to removing a character from a string at the specific index is using slicing....
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python-remove-index-ranges-from-string
Python - Remove index ranges from String - GeeksforGeeks
May 3, 2023 - In this, we perform the task of checking for indices for strings using any() and list comprehension is used to reconstruct string accordingly. ... # Python3 code to demonstrate working of # Remove index ranges from String # Using any() + list comprehension + join() # initializing strings test_str1 = 'geeksforgeeks is best for geeks' # printing original string print("The original string 1 is : " + str(test_str1)) # initializing ranges list range_list = [(3, 6), (7, 10), (14, 17)] # using any() to check for strings in index ranges res = ''.join(chr for idx, chr in enumerate(test_str1, 1) if not any(strt_idx <= idx <= end_idx for strt_idx, end_idx in range_list)) # printing result print("The reconstructed string : " + str(res))
๐ŸŒ
Python Examples
pythonexamples.org โ€บ python-delete-character-at-specific-index-in-string
How to Delete Character at Specific Index in String in Python
To delete the character from a string at specific index in Python, we can use string slicing technique. Slice a string from starting to just before the specified index, and slice another string from after the specified index till the end. Join these two strings, and the resulting string is ...
๐ŸŒ
Python Guides
pythonguides.com โ€บ remove-character-from-python-string-through-index
Remove a Character from a Python String by Index
September 8, 2025 - # Remove character by index using slicing def remove_char_by_index(text, index): return text[:index] + text[index+1:] # Example city = "NewYork" result = remove_char_by_index(city, 3) print("Original:", city) print("After removing character at index 3:", result) ... You can refer to the screenshot below to see the output. This method is simple and fast, but it creates a new string every time. Still, for most cases, itโ€™s the go-to solution. Another way is to loop through the Python string and rebuild it, skipping the character at the given index...
๐ŸŒ
w3resource
w3resource.com โ€บ python-exercises โ€บ string โ€บ python-data-type-string-exercise-9.php
Python: Remove the nth index character from a nonempty string - w3resource
June 12, 2025 - # Define a function named remove_char that takes two arguments, 'str' and 'n'. def remove_char(str, n): # Create a new string 'first_part' that includes all characters from the beginning of 'str' up to the character at index 'n' (not inclusive). first_part = str[:n] # Create a new string 'last_part' that includes all characters from the character at index 'n+1' to the end of 'str'. last_part = str[n+1:] # Return the result by concatenating 'first_part' and 'last_part', effectively removing the character at index 'n'. return first_part + last_part # Call the remove_char function with different input strings and character positions and print the results. print(remove_char('Python', 0)) # Output: 'ython' print(remove_char('Python', 3)) # Output: 'Pyton' print(remove_char('Python', 5)) # Output: 'Pytho'
Find elsewhere
๐ŸŒ
Chron.com
smallbusiness.chron.com โ€บ removing-specific-index-string-python-38632.html
Removing a Specific Index From a String in Python | Small Business - Chron.com
November 21, 2017 - Similarly, the Python "string" type functions as a collection type to an extent, allowing index referencing and manipulation. But, as strings have their own internal quirks, replacing and removing items from them requires knowledge of how they and other collection types work.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python-program-for-removing-i-th-character-from-a-string
Python program for removing i-th character from a string - GeeksforGeeks
Combining these slices using + effectively removes the character at the specified index. Let's explore other different methods to removing i-th character from a string: ... A basic for loop can also be used to iterate over each character in the string and build a new string that excludes the i-th character. ... s = "PythonProgramming" # Index of character to remove i = 6 # Initialize an empty string to store result res = '' # Loop through each character in original string for j in range(len(s)): # Check if current index is not index to remove if j != i: # Add current character to result string res += s[j] print(res)
Published: November 10, 2024
๐ŸŒ
Hostman
hostman.com โ€บ tutorials โ€บ how-to-delete-a-character-from-a-string-in-python
How to Delete a Character from a String in Python: A Step-by-Step Guide | Hostman
Now let's see how to delete the last character in a string using Python: ... my_string = "Hello World." result_string = "" index = len(my_string) for i in index-1: result_string += my_string[i] print(result_string) ... The operation of this code snippet is similar to the previous one, except this time we are checking whether the index contains the number i. By the way, we can use the same approach to remove specific characters:
๐ŸŒ
Mimo
mimo.org โ€บ tutorials โ€บ python โ€บ how-to-remove-a-character-from-a-string-in-python
How to Remove a Character from a String in Python
Use replace() when you want to delete a character everywhere in the string. ... Loop over the characters you want to delete. ... Use slicing when you know the position you want to remove. ... If the index might be out of range, check it first.
๐ŸŒ
w3resource
w3resource.com โ€บ python-exercises โ€บ string โ€บ python-data-type-string-exercise-11.php
Python: Remove the characters which have odd index values of a given string - w3resource
# Define a function named odd_values_string that takes one argument, 'str'. def odd_values_string(str): # Initialize an empty string 'result' to store characters with odd indices. result = "" # Iterate through the indices (i) of the characters in the input string 'str'. for i in range(len(str)): # Check if the index (i) is even (i.e., has a remainder of 0 when divided by 2). if i % 2 == 0: # If the index is even, append the character at that index to the 'result' string. result = result + str[i] # Return the 'result' string containing characters with odd indices. return result # Call the odd_values_string function with different input strings and print the results. print(odd_values_string('abcdef')) # Output: 'ace' print(odd_values_string('python')) # Output: 'pto' ... Write a Python program to remove characters at odd indices using slicing with a step of 2.
๐ŸŒ
SW Hosting
swhosting.com โ€บ en โ€บ blog โ€บ how-to-remove-a-character-from-a-string-in-python
How to remove a character from a string in python - SW Hosting's Blog
April 10, 2024 - Method 5: Using slicing: Python allows us to perform slicing on strings, which means that we can obtain substrings of a string using slicing notation. We can use this to remove a specific character from a string. string = "SW Hosting" delete_char_character = "o" character_index = string.index(delete_character) new_string = string[:index_character] + string[index_character + 1:] print(new_string) # Output: SW Hsting
๐ŸŒ
AskPython
askpython.com โ€บ python โ€บ string โ€บ remove-character-from-string-python
5 Ways to Remove a Character from String in Python - AskPython
August 6, 2022 - str = "Engineering" print ("Original string: " + str) # Removing char at index 2 # using join() + list comprehension res_str = ''.join([str[i] for i in range(len(str)) if i != 2]) print ("String after removal of character: " + res_str) ... I have been working on Python programming for more than 12 years.
๐ŸŒ
Snakify
snakify.org โ€บ strings
Strings - Learn Python 3 - Snakify
For example, to remove the first character from the string (its index is 0) take the slice S[1:]. Similarly if you omit the first parameter, then Python takes the slice from the beginning of ...
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ ways-to-remove-ith-character-from-string-in-python
How to Remove Letters From a String in Python - GeeksforGeeks
November 5, 2024 - Slicing is typically used to extract parts of a string but we can also use it to exclude a particular letter by slicing around it. This method works best when removing a letter at a known position, such as the first or last occurrence. For example removing the first occurrence of any letter: Python ยท s = "hello world" # Find index of first occurrence of 'o' in string idx = s.find("o") # Check if 'o' was found (index is not -1) if idx != -1: # Create a new string by removing first occurrence of 'o' s = s[:idx] + s[idx+1:] print(s) Output ยท