remove the first character of string python code example
Example 1: python remove first and last character from string
string = string[1:-1]
Example 2: remove first character of string python
r = "hello"
r = r[1:]
print(r) # ello
string = string[1:-1]
r = "hello"
r = r[1:]
print(r) # ello