Screen Link:
My Code:
opened_file
read_file = reader(opened_file)
apps_data = list(read_file)
print(apps_data[:5])
What I expected to happen:
I wanted a color output
What actually happened:
I did not get any color
Replace this line with the output/error
How do you color your output?
Hi @joaquimbalta,
- You should first import
reader
, and then in your code you didn’t actually open the file.
- When you fix these 2 issues, your code will be:
from csv import reader
opened_file = open('AppleStore.csv')
read_file = reader(opened_file)
apps_data = list(read_file)
print(apps_data[:5])
and it’s supposed to create a list called apps_data
, and then visualize the first 5 items of that list. The output is not supposed to be colored.
1 Like