in reply to **HomeWork** Trying to search an array and match it to a user input

Minor suggestion: change the prompt of your program to:
print "Please pick one of the following cities by entering any portion + of the beginning of the city name:($myCities)\n";

That way, your prompt always reflects what your program considers a list of valiid responses.

  • Comment on Re: **HomeWork** Trying to search an array and match it to a user input
  • Download Code