Aug-17-2019, 01:00 AM
Hello, I am a beginer learning on dataquest and I am stucked with a simple exercice where I make a mistake where I have my table new title but not the text values and I do not see where I do the mistake. Can someone help me ? Thank you. Bruno
opened_file = open('AppleStore.csv') from csv import reader read_file = reader(opened_file) apps_data = list(read_file) for app in apps_data[1:]: price = float(app[4]) if price == 0.0: app.append('free') elif price > 0.0 and price < 20: app.append('affordable') elif price >= 20 and price < 50: app.append('expensive') else: app.append('very expensive') apps_data_title = apps_data[0] apps_data_title.append('price_label') apps_dataprint = list (apps_data[0:6]) print(apps_dataprint)