Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Remove the First Character From the String in Python Using the Slicing

greeting = "HHello world!"
new_greeting = greeting[1:]
# In here we select greeting string from character 1 to end (except character 0)
print(new_greeting)
#output: Hello world!
 
PREVIOUS NEXT
Tagged: #Remove #First #Character #From #String #Python #Using #Slicing
ADD COMMENT
Topic
Name
9+8 =