output function giving error syntax

0
lista1 = [1,2,3,1,1]
lista2 = [2,2,3,1,3]
res = list(input("Digite seus inteiros"))
def exibiçao(lista1,lista2,res):

print("{} {} {} {} {}".format(lista1[4],lista1[3],lista1[2],lista1[1],lista1[0] ))
print("{} {} {} {} {}".format(lista2[4],lista2[3],lista2[2],lista2[1],lista2[0] ))
print("--------------------------")
print("{} {} {} {} {}".format(res[4],res[3],res[2],res[1],res[0] ))
    
asked by anonymous 02.11.2018 / 14:33

1 answer

1

Avoid Latin words, such as display, if you want to keep the name put display without stress, remember that the English language does not have such graphic signs.

Also, you forgot to close relatives, as a result of this act occurred errors.

I hope I have helped.

lista1 = [1, 2, 3, 1, 1]
lista2 = [2, 2, 3, 1, 3]
res = [3, 4, 6, 2, 4]


def exibicao(lista):

  return len(lista)


print("{}, {}, {}, {}, {} ".format(lista1[4], lista1[3], lista1[2], lista1[1], lista1[0]))

print("{}, {}, {}, {}, {}".format(lista2[4], lista2[3], lista2[2], lista2[1], lista2[0]))

print("Tamanho da lista igual a ", exibicao(lista2))

print("{}, {}, {}, {}, {}".format(res[4], res[3], res[2], res[1], res[0]))
    
02.11.2018 / 15:53