+ 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

15th Nov 2017, 10:24 PM
DONG PEI
DONG PEI - avatar
1 Odpowiedź
0
Take advantage of Python's very powerful indexing for Strings and Lists! myString = "abcdefg" print("New String:", myString[:3] + myString[3 + 1:])
16th Nov 2017, 3:31 AM
Sapphire