Generation

generate functionFri, 12 May 2023

realizar registros de notas y mostrar la de puntuacion mayor

notas = {} def registrar_notas(notas): for estudiante in notas: print('Ingrese la nota de {0}'.format(estudiante)) notas[estudiante] = float(input()) def mostrar_mayor(notas): mayor = 0 for estudiante in notas: if notas[estudiante]>mayor: mayor = notas[estudiante] nombre = estudiante return nombre estudiantes = {'Juan', 'Carlos', 'Maria'} registrar_notas(estudiantes) print('El mayor es {0}'.format(mostrar_mayor(estudiantes)))

Questions about programming?Chat with your personal AI assistant