text: from collections import deque
  
  
  def tail(sequence, number):
      """
      function that takes a sequence (like a list, string, or tuple)
      and a number n and returns the last n elements from the given
      sequence, as a list.
      """
      if number < 1:
          return []
      return list(deque(sequence, maxlen=number))
  