Hello,<br><br>I&#39;m working at a certain website&#39;s puzzles using pythonin order to learn the language, but am stuck understanding what is going on in my code (ie why it doesn&#39;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.&nbsp; The logic here looks right to a VB eye.<br>
<br>Here&#39;s the code...<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">s=&quot;&quot;&quot;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&quot;&quot;&quot;</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;">&nbsp;&nbsp;&nbsp; j=s[i:i+8]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; if j[0].islower():</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if j[1:3].isupper():</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if j[5:7].isupper():</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print j</span><br><br>Any help much appreciated!<br><br>Rob<br>