I'm having trouble trying to read the numbers (0 - 10) into a list in Python 3 using CSV file and in a column format.
<p>I first wrote the numbers in a column into a CSV file but having trouble with the reading part. I want to make into one list and make sure that the numbers are converted into ints</p>

<pre><code>f = open('numbers.csv', 'r')
with f:
    reader = csv.reader(f)
    for column in reader:
        print(column)
</code></pre>

<p>This is what I wrote for my code and here is my output but how do I make it into a list and convert the numbers into integers?</p>

<p>Column:</p>

<pre><code>['0']
['1']
['2']
['3']
['4']
['5']
['6']
['7']
['8']
['9']
['10']
</code></pre>

<pre><code>numlist = list()
f = open('numbers.csv', 'r')
with f:
    reader = csv.reader(f)
    for column in reader:
        numlist.append( int(column[0]) )
print( numlist )
</code></pre>

python numbers