How To/python/

#!python
 
"""
string.substring()
string.substr()
string.slice()
string_sub_str()
 
There are no such methods in python. Use array slicing instead:
"""
 
text = "this_is_my_not_so_long_string"
print text[6:]
#s_my_not_so_long_string
 
print text[:4]
#this
 
print text[3:8]
#s_is_
 
print text[100:]
#