Hi Jim, on Thu, 14 Apr 2005 01:09:14 -0500 "Jim and Laura Ahl" <[EMAIL PROTECTED]> wrote : ---------------------------------------------------------------------------------------------
Jim and Laura Ahl > How come when I ask it to print i[2:4] from an inputted string it gives me the letters between two and four Jim and Laura Ahl > Jim and Laura Ahl > But when I ask it to print i[-1:-4] it does not print anything. Here you extract a slice starting with the last entry in i and ending much earlier, so you are asking for a slice with a negative length. Perhaps what you like is print i[-4:-1] ? ------------------- end ---------------------- HTH Ewald _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor