Hey, how you doing?
If you want to fill two lists with 5 integer values in each, allow me to make some remarks in your code.
I am not experienced, so if someone wants to correct me by talking nonsense, I thank :D
Its function lê_e_verifies contains accentuation, this is not recommended, although Python does not complain. Always try to avoid these accents in the definitions of functions, methods, variables, etc.
Within your function, you are writing twice on the same variable whole and then returning it, that is, you put the value 1 on it, and then put the value 2 by deleting the value 1. I suggest that you keep a single statement for that variable.
# Sempre deixe um espaço nas atribuições, 'a = b'.
lista1 = []
lista2 = []
# Sua função.
def le_e_verifica():
while True:
try:
inteiros = int(input('Entre com o número'))
return inteiros
except ValueError:
print('O valor informado não é válido, tente novamente.')
# Fazendo as atribuições nas listas.
for c in range(5):
lista1.append(le_e_verifica())
lista2.append(le_e_verifica())
If you want, you can for example pass a parameter to the function telling which of the lists will be filled, or something like that.
When you try to call the function without using the parentheses, in fact you are associating the function to the variable, and not calling the function as you expect, note:
# Associa a função a variável 'A'.
A = le_e_verifica
# Agora você pode chamar através de 'A'.
resultado = A()
I hope this can help you. ;)