Guided Project 1: Name error (name 'reader' is not defined)

Screen Link: https://app.dataquest.io/m/350/guided-project%3A-profitable-app-profiles-for-the-app-store-and-google-play-markets/2/opening-and-exploring-the-data

Your Code: ``` # Apple Store
opened_file = open(‘AppleStore.csv’)
read_file = reader(opened_file)
ios = list(read_file)
ios_header = ios[0]
ios = ios[1:]

#Google Play Store
opened_file = open(“googleplaystore.csv”)
read_file = reader(opened_file)
android = list(read_file)
android_header = android[0]
android = android[1:] ```

What I expected to happen: Opening of files

What actually happened: ``` NameErrorTraceback (most recent call last)
in ()
1 # Apple Store
2 opened_file = open(‘AppleStore.csv’)
----> 3 read_file = reader(opened_file)
4 ios = list(read_file)
5 ios_header = ios[0]

NameError: name ‘reader’ is not defined ```

Other details:

Hey there! Did you import the reader() function from the csv module prior to running this code?

e.g. from csv import reader

Hi @dustindq, I got the point. Thanks for mentioning it and appreciate the help.