grante at visi.com (Grant Edwards) wrote: > for non-empty strings type(s) == type(s[0]). Slightly more generally, type(s) == type(s[0:0]) for all strings, even empty ones.