p1-hello-api-flask

What if we wanted the program to greet us with either our first name or our last name or both, depending upon what we send in the querystring? Consider the scenario where if Jason call the API with his

  1. First name only, the API responds with “ Hello, Jason ! ”, indicating familiarity
  2. Last name only, the API responds with a respectful “ Hello, Mr. Statham ! ”
  3. Both first and last name, the API responds with an annoyed “ Is your name Jason Statham ? ”