How do I check if x has more or less than seven integers?
<pre><code>x = []
y = int(input("Hello, please enter your date of birth in this format: DDMMYYYY"))
x.append(y)
b = len.x()
if b &gt; 7:
    input("Please enter your date of birth correctly in the above format")
elif b &lt; 7:
    input("Please enter your date of birth correctly in the above format")
</code></pre>

<p>At the moment I'm getting this error:    </p>

<blockquote>
  <p>b = len.x() </p>
  
  <p>AttributeError: 'builtin_function_or_method' object has no
  attribute 'x'</p>
</blockquote>

<p>Sorry, I'm quite new to python, thanks for all the help!</p>

<p>You can checkout the solution given in the below thread if you are dealing with date and time.</p>

<p><a href="http://stackoverflow.com/questions/15581629/getting-input-date-from-the-user-in-python-using-datetime-datetime">Getting input date from the user in python using datetime.datetime</a></p>

python python-3.x