Mega Code Archive

 
Categories / Python Tutorial / List
 

Slicing to access ranges of elements

tag = '<a href="http://www.python.org">Python web site</a> print tag[9:30] print tag[32:-4]