How to find String in String using Python

 example  
about_me= "I am very a sgoode boy"
start_link = about_me.find('sgoode')
start_quote= about_me.find('s',start_link)
#print start_quote
end_quote=about_me.find('e',start_quote+1)
#print end_quote
me = about_me[start_quote+1:end_quote]
print me 
output:good

Comments

Popular posts from this blog

পিৎজা এবং বই

How to Download Video from Youtube - The Easiest way