Mega Code Archive
Categories
/
Python Tutorial
/
List
Replace the slice with a sequence whose length is different from that of the original
name = list('Perl') name[1:] = list('ython') print name