Answered by : annoyed-antelope-87f5ykzp3ikm
string = string[1:-1]
Source : | Last Update : Thu, 29 Apr 21
Answered by : siddharthpotti
s = "hello"
print s[1:]
Source : | Last Update : Wed, 12 Aug 20
Answered by : obnoxious-ocelot-9xcthosoq6jh
s = ":dfa:sif:e"
print(s[1:])
prints: dfa:sif:e
Source : https://stackoverflow.com/questions/4945548/remove-the-first-character-of-a-string | Last Update : Tue, 16 Feb 21
Answered by : super-sandpiper-klhupo3nlwx9
>>>mystring = "Description: Mary had a little lamb Description: "
>>>print mystring.replace("Description: ","",1)
"Mary had a little lamb Description: "
Source : https://stackoverflow.com/questions/10648490/removing-first-appearance-of-word-from-a-string | Last Update : Thu, 25 Jun 20
Answered by : wicked-wombat-tv6yl6jipmly
r = "hello"
r = r[1:]
print(r) # ello
Source : https://stackoverflow.com/questions/4945548/remove-the-first-character-of-a-string | Last Update : Thu, 13 May 21
Answered by : beautiful-badger-6aclhdmkodt9
{"tags":[{"tag":"textarea","content":"s = \":dfa:sif:e\"\nprint s[1:]","code_language":"python"}]}
Source : https://stackoverflow.com/questions/4945548/remove-the-first-character-of-a-string | Last Update : Fri, 03 Mar 23
Answered by : you
string = "Hello, World!"
new_string = string[10:]
print(new_string)
Source : | Last Update : Tue, 19 Sep 23