2
Good afternoon, I’m studying python alone and I’m trying to do a little programming with lists and functions, the program it will receive 10 names and store in a list, then 10 notes and store in another list, so far so good, the problem is that I am not able to make me take the result of the functions, ie lists and use a "final" function to show on the screen.
What happens is that when I finish executing the last function the program terminates and returns nothing. Follow the code:
def preencher_nome(): #função para o usuario preencher uma lista com 10 nomes
lista = []
contador = len(lista)
while contador <= 9:
    lista.append(str(input("Digite o nome do aluno ")))
    contador = contador + 1
n = int(input("\nAgora você terminou de preencher os nomes, digite 2 para preencher as notas\n"))
if n == 2:
    preencher_notas()
return lista
def preencher_notas(): #função para o usuario preencher uma lista com 10 notas
    print("Agora você poderá preencher as notas\n")
    print("\n\n")
    notas = []
    count = len(notas)
    while count <= 9:
        notas.append(int(input("Digite a nota dos alunos obedecendo a sequencia dos nomes")))
        count = count + 1
    return notas
def main():
    print("Olá\n")
    x = int(input("Digite 1 para começar a preencher o nome dos estudantes\n"))
    if x == 1:
        preencher_nome()
    else:
        print("Opção Inválida")
main()
						


You need to do something like
nomes = preencher_nome(). I advise you to study algorithms before studying a programming language. Learning algorithms tends to be easier than learning these basic concepts directly in the language.– Woss