title: Python for dummies using the bakeshare data
body: <p>I want to run this code but I have some errors and I can't see the problem.  The code is below. And do I have to set global list for cities, month and the day?</p>
  
  <pre><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():
  """
  Asks user to specify a city, month, and day to analyze.
  
  Returns:
  (str) city - name of the city to analyze
  (str) month - name of the month to filter by, or "all" to apply no month filter
  (str) day - name of the day of week to filter by, or "all" to apply no day filter
  """
  print('Hello! Let\'s explore some US bikeshare data!')
  
  # get user input for city (chicago, new york city, washington). HINT: Use a while loop to handle invalid inputs
  cities = ('Chicago', 'New York', 'Washington')
  while True:
  city = input('Which of these cities do you want to explore : Chicago, New York or Washington? \n&gt; ').lower()
  if city in cities:
  break
  
  # get user input for month (all, january, february, ... , june)
  months = ['january', 'february', 'march', 'april', 'may', 'june']
  month = get_user_input('Now you have to enter a month to get some months result) \n&gt; ', months)
  
  # get user input for day of week (all, monday, tuesday, ... sunday)
  days = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday' ]
  day = get_user_input('Now you have to enter a month to get some months result) \n&gt; ', days)
  
  print('-'*40)
  return city, month, day
  </code></pre>