title: Whats the thing going wrong here?
body: <p>The following piece of code in Ruby is not compiling. Can anyone help me know why? I've been at it for hours, but no result. :(</p>
  
  <p>Code snippet:</p>
  
  <pre><code>    for i in 0..followers.length
      for j in 0..followers[i].length
      end
  end
  </code></pre>
  
  <p>Why does this piece of code keep throwing an error saying:</p>
  
  <pre><code>the .length is undefined for nil:NilClass(NoMethodError)
  </code></pre>