Screen Link:
My Code:
opened_file = open('AppleStore.csv')
from csv import reader
read_file = reader(opened_file)
apps_data = list(read_file)
def extract(column):
result = []
for row in apps_data[1:]:
extract = row[column]
result.append(extract)
return result
genres = extract(11)
What I expected to happen:
Extract column number 11.
What actually happened:
genres is shorter than we expected.
Any idea what i did wrong in my solution? I think about any single Step but i can’t find the mistake here.
Thanks.