Mega Code Archive

 
Categories / Python Tutorial / List
 

The starting and ending indices can exceed the length of the string

print ('A', 'B', 'C')[-100:100]