May-12-2018, 10:50 AM
Hi there,
I have three different csv-files (chicago.csv, new_yourk.csv and washington.csv) I want to write a code where I will ask a user to choose one of the city from this files:
This is ma code:
J
I have three different csv-files (chicago.csv, new_yourk.csv and washington.csv) I want to write a code where I will ask a user to choose one of the city from this files:
This is ma code:
import time import pandas as pd import numpy as np CITY_DATA = { 'chicago': 'chicago.csv', 'new york city': 'new_york_city.csv', 'washington': 'washington.csv' } def get_filters(): print('Hello! Let\'s explore some US bikeshare data!') print('Would you like to see data for Chicago, New York, or Washington') # get user input for city (chicago, new york city, washington). Cities = ('Chicago', 'New York', 'Washington') while city in cities: print cityBut my while loop doesn't work. could somebody please help

J