Hello, how are you?
If you want to populate two lists with 5 integer values in each, let me make some observations in your code.
I am not experienced, so if someone wants to correct me by talking nonsense, I thank: D
Your read and check function contains accents, this is not recommended, although Python does not complain. Always try to avoid these accents in definitions of functions, methods, variables, etc.
Within your function, you are typing twice on top of the same variable integers and then returning it, that is, you put the value 1 in it, and then put the value 2 by erasing the value 1. I suggest that you keep a single statement for this 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 saying which of the lists will be filled, or something.
When you try to call the function without using the parentheses, you are actually associating the function with 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()
Hope this helps you. ;)