title: AttributeError: 'str' object has no attribute 'list'
body: <p><strong>We have to find out the average of a list of numbers entered through keyboard</strong></p>
  <pre><code>n=0
  a=''
  while n&gt;=0:
      a=input(&quot;Enter number: &quot;)
      n+=1
      if int(a)==0:
          break
  print(sum(int(a.list()))/int(n))
  </code></pre>