import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)

from ask import alexa

def lambda_handler(request_obj, context=None):
    return alexa.route_request(request_obj)

@alexa.default
def default_handler(request):
    logger.info('default_handler')
    return alexa.respond('There were 42 accidents in 2016.')

@alexa.request("LaunchRequest")
def launch_request_handler(request):
    logger.info('launch_request_handler')
    return alexa.create_response(message='You can ask me about car accidents.')

@alexa.request("SessionEndedRequest")
def session_ended_request_handler(request):
    logger.info('session_ended_request_handler')
    return alexa.create_response(message="Goodbye!")

@alexa.intent('AMAZON.CancelIntent')
def cancel_intent_handler(request):
    logger.info('cancel_intent_handler')
    return alexa.create_response(message='ok', end_session=True)

@alexa.intent('AMAZON.HelpIntent')
def help_intent_handler(request):
    logger.info('help_intent_handler')
    return alexa.create_response(message='You can ask me about car accidents.')

@alexa.intent('AMAZON.StopIntent')
def stop_intent_handler(request):
    logger.info('stop_intent_handler')
    return alexa.create_response(message='ok', end_session=True)

import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)

from ask import alexa

def lambda_handler(request_obj, context=None):
    return alexa.route_request(request_obj)

@alexa.default
def default_handler(request):
    logger.info('default_handler')
    return alexa.respond('There were 42 accidents in 2016.')

@alexa.request("LaunchRequest")
def launch_request_handler(request):
    logger.info('launch_request_handler')
    return alexa.respond('You can ask me about car accidents.')

@alexa.request("SessionEndedRequest")
def session_ended_request_handler(request):
    logger.info('session_ended_request_handler')
    return alexa.respond('Goodbye.')

@alexa.intent('AMAZON.CancelIntent')
def cancel_intent_handler(request):
    logger.info('cancel_intent_handler')
    return alexa.respond('Okay.', end_session=True)

@alexa.intent('AMAZON.HelpIntent')
def help_intent_handler(request):
    logger.info('help_intent_handler')
    return alexa.respond('You can ask me about car accidents.')

@alexa.intent('AMAZON.StopIntent')
def stop_intent_handler(request):
    logger.info('stop_intent_handler')
    return alexa.respond('Okay.', end_session=True)

Use respond instead of create_response
Use respond instead of create_response

  import logging
  logger = logging.getLogger()
  logger.setLevel(logging.INFO)
  
  from ask import alexa
  
  def lambda_handler(request_obj, context=None):
      return alexa.route_request(request_obj)
  
  @alexa.default
  def default_handler(request):
      logger.info('default_handler')
      return alexa.respond('There were 42 accidents in 2016.')
  
  @alexa.request("LaunchRequest")
  def launch_request_handler(request):
      logger.info('launch_request_handler')
-     return alexa.create_response(message='You can ask me about car accidents.')
+     return alexa.respond('You can ask me about car accidents.')
  
  @alexa.request("SessionEndedRequest")
  def session_ended_request_handler(request):
      logger.info('session_ended_request_handler')
-     return alexa.create_response(message="Goodbye!")
+     return alexa.respond('Goodbye.')
  
  @alexa.intent('AMAZON.CancelIntent')
  def cancel_intent_handler(request):
      logger.info('cancel_intent_handler')
-     return alexa.create_response(message='ok', end_session=True)
+     return alexa.respond('Okay.', end_session=True)
  
  @alexa.intent('AMAZON.HelpIntent')
  def help_intent_handler(request):
      logger.info('help_intent_handler')
-     return alexa.create_response(message='You can ask me about car accidents.')
+     return alexa.respond('You can ask me about car accidents.')
  
  @alexa.intent('AMAZON.StopIntent')
  def stop_intent_handler(request):
      logger.info('stop_intent_handler')
-     return alexa.create_response(message='ok', end_session=True)
+     return alexa.respond('Okay.', end_session=True)
  
Use respond instead of create_response
## Code Before:
import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)

from ask import alexa

def lambda_handler(request_obj, context=None):
    return alexa.route_request(request_obj)

@alexa.default
def default_handler(request):
    logger.info('default_handler')
    return alexa.respond('There were 42 accidents in 2016.')

@alexa.request("LaunchRequest")
def launch_request_handler(request):
    logger.info('launch_request_handler')
    return alexa.create_response(message='You can ask me about car accidents.')

@alexa.request("SessionEndedRequest")
def session_ended_request_handler(request):
    logger.info('session_ended_request_handler')
    return alexa.create_response(message="Goodbye!")

@alexa.intent('AMAZON.CancelIntent')
def cancel_intent_handler(request):
    logger.info('cancel_intent_handler')
    return alexa.create_response(message='ok', end_session=True)

@alexa.intent('AMAZON.HelpIntent')
def help_intent_handler(request):
    logger.info('help_intent_handler')
    return alexa.create_response(message='You can ask me about car accidents.')

@alexa.intent('AMAZON.StopIntent')
def stop_intent_handler(request):
    logger.info('stop_intent_handler')
    return alexa.create_response(message='ok', end_session=True)

## Instruction:
Use respond instead of create_response
## Code After:
import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)

from ask import alexa

def lambda_handler(request_obj, context=None):
    return alexa.route_request(request_obj)

@alexa.default
def default_handler(request):
    logger.info('default_handler')
    return alexa.respond('There were 42 accidents in 2016.')

@alexa.request("LaunchRequest")
def launch_request_handler(request):
    logger.info('launch_request_handler')
    return alexa.respond('You can ask me about car accidents.')

@alexa.request("SessionEndedRequest")
def session_ended_request_handler(request):
    logger.info('session_ended_request_handler')
    return alexa.respond('Goodbye.')

@alexa.intent('AMAZON.CancelIntent')
def cancel_intent_handler(request):
    logger.info('cancel_intent_handler')
    return alexa.respond('Okay.', end_session=True)

@alexa.intent('AMAZON.HelpIntent')
def help_intent_handler(request):
    logger.info('help_intent_handler')
    return alexa.respond('You can ask me about car accidents.')

@alexa.intent('AMAZON.StopIntent')
def stop_intent_handler(request):
    logger.info('stop_intent_handler')
    return alexa.respond('Okay.', end_session=True)
