code: def check_if_numbers_are_consecutive(list_):
      
      return all((True if second - first == 1 else False
                  for first, second in zip(list_[:-1], list_[1:])))
docs: Returns True if numbers in the list are consecutive
  
      :param list_: list of integers
      :return: Boolean