Ligeiramente superior

As duas listas têm o mesmo comprimento e são idênticas ou diferem em uma posição. Retorne True somente quando o valor da primeira lista for maior nessa posição diferente. Retorne False quando as listas forem idênticas.

Exemplos

is_first_superior([1, 2, 4], [1, 2, 3]) ➞ True
# The pair of items at each index are compared in turn.
# 1 from the first list is the same as 1 from the second list.
# 2 is the same as 2.
# However, 4 is greater than 3, so list one is superior.

is_first_superior(["a", "d", "c"], ["a", "b", "c"]) ➞ True

is_first_superior(["zebra", "ostrich", "whale"], ["ant", "ostrich", "whale"]) ➞ True

is_first_superior([1, 2, 3, 4], [1, 2, 4, 4]) ➞ False

is_first_superior([True, 10, "zebra"], [True, 10, "zebra"]) ➞ False

Observações

  • As duas listas terão o mesmo comprimento.
  • Todos os valores e seus correspondentes serão sempre do mesmo tipo de dado.
  • As listas serão diferentes em apenas um elemento.
  • Se as duas listas forem iguais, retorne False.