title: How to iterate through list in Python/Jython (like with HashMaps)?
body: <p>is there any way to iterate through python/jython lists like in HashMaps?</p>
  
  <p>Example:</p>
  
  <pre><code>list = [effectone, effecttwo, effectthree, effectfour]
  if list.hasNext():
  #do something
  </code></pre>
  
  <p>This is how I done it in hashmaps:</p>
  
  <pre><code>       it = channelList.entrySet().iterator() #channelList is an hashmap
         if it.hasNext():
              inext = it.next()
              nextkey = inext.getKey() #Also, how do I get current "effect"?
              nextvalue = inext.getValue()
  </code></pre>
  
  <p>Thanks in advance!</p>