python remove first n characters of string code example
Example 1: remove first character of string python
r = "hello"
r = r[1:]
print(r) # ello
Example 2: how to remove first few characters from string in python
a_string = "abcde"
sliced = a_string[2:]
Remove first 2 characters
print(sliced)