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.
In reply to Re: **HomeWork** Trying to search an array and match it to a user input
by apl
in thread **HomeWork** Trying to search an array and match it to a user input
by trenchwar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |