On Thursday 24 September 2009 05:05:45 MacRules wrote:
> s="1234abcd"
 
print s[0:4] 
should do it. Not sure it's a function though.
\d
-- 
home: http://otherwise.relics.co.za/
2D vector animation : https://savannah.nongnu.org/projects/things/
Font manager : https://savannah.nongnu.org/projects/fontypython/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to