#!/usr/local/bin/python2 s = 'asdfg<' for x in xrange(1000000): for i in s: if i == '<': break