x = 11 counter = 0 while x != 1: print x x = x / 2 counter = counter + 2 if counter > 6: break print counter print 'new' x = 12.5 counter = 0 while x != 1: print x x = x / 2.0 counter = counter + 2 if counter > 6: break print counter print 'new' a = '12344567675758764646' i = 0 while a[i] != '7': if a[i] == a[i+1]: i = i - 2 else: i = i + 3 if i >= len(a): i = i - len(a) print a[i] print 'telos'