+ 1
given a string, and a integer, how to remove the index of that string without using any string process function?
abcdefg, int is 3, so final string should be deff, how to approach that without using replace,etc
1 ответ
0
Take advantage of Python's very powerful indexing for Strings and Lists!
myString = "abcdefg"
print("New String:", myString[:3] + myString[3 + 1:])