title: Python While Loop Syntax
body: <pre><code>class Solution: 
      def display(self,head):
          current = head
          while current:
              print(current.data,end=' ')
              current = current.next
  </code></pre>
  
  <p>Hello, I am having some difficulties understanding the above while loop, AFAIK you need to have a condition with a while loop, so:</p>
  
  <pre><code>while (stuff) == True:
  </code></pre>
  
  <p>But the above code has:</p>
  
  <pre><code>while current:
  </code></pre>
  
  <p>Is this the same as:</p>
  
  <pre><code>while current == head:
  </code></pre>
  
  <p>Thanks</p>