[EMAIL PROTECTED] wrote:
>
>The string draws a map that I then want to be able to traverse
>through. If I can count through the individual characters of a list I
>can create an x-y coordinate plane for navigation.

Well, the point Matt was making is that traversing through a list and
traversing through a string are the same.

  # Given this:
  s = 'abcde'
  l = ['a','b','c','d','e']

  # These are identical:
  for ch in s:
    pass
  for ch in l:
    pass

  # And these are identical:
  print s[3]
  print l[3]

Slicing is identical.  Subsetting is identical.  The only difference is
that I can change an element of the list.
-- 
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to