Hello,<br><br>I'm working at a certain website's puzzles using pythonin order to learn the language, but am stuck understanding what is going on in my code (ie why it doesn't do as expected)<br><br>the intention of this snippet is to only print slices where character 1 is lower case, 2-4 and 6-8 are upper. The logic here looks right to a VB eye.<br>
<br>Here's the code...<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">s="""kKjyaqbooOlNkAddgAazFlgKLjlXDGtlvRBYCYQiRfRIfWIYaLZxLrQzrYzBghYOKAaKgXmUpPkCaMmN</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">GlAXokgPsdyUjsiaKSSoeCqMrMbQXeRZqkNeAQpujYJFGfbeceunpFNYjuUPiQVOZPXTKhiwPMLKZEKP</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">NoEPPwXtRoVfGYIRyRgZWyJrMjuBQNchjZBNQUwSgIyXniXCMeXRfAcDKxskxYvMyRGyXeSlOFKFItyI</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">wgDEIuvHFxRfQhtqLKnJfONtkcnDORkZqbtPplsjjTEIsquhSsQTwNZuPVxaTqDvwMONBfCsNJuJpJHZ</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dCdFLtBQPtFQuCdKOrpndJNUFQIDSbetUKylhSUjcDVtbiQrWMRQhAwGUZyPneCGUjGBBTkLqxLAXXtB</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">KfErkDaWMFZZeuqDmXKJEGHyToPUhPphfVhgUZgbIuRAtWnroImpJKqqmEZqeNQCKzhjIkKQHURWLXFw</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">PBuijeoTSpsVLaOGuLVjMZXkBvVXwUuHfBihziiavGSYofPNeKsTXruMUumRRPQJzvSzJkKbtSipiqBd"""</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">h = range(len(s)-9)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">for i in h:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> j=s[i:i+8]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> if j[0].islower():</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> if j[1:3].isupper():</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> if j[5:7].isupper():</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> print j</span><br><br>Any help much appreciated!<br><br>Rob<br>