-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathLista3_45.py
28 lines (28 loc) · 1010 Bytes
/
Lista3_45.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
gabarito = []
respostas_aluno = []
notas_tiradas = []
print("\nProfessor: ")
for i in range(10):
print("Questão: ", i + 1)
resposta_certa = gabarito.append(input("Digite a alternativa correta: "))
n_aluno = 1
continuar = True
while continuar != 'n':
print("\n" * 5)
print("Aluno n°", n_aluno, ":")
respostas_aluno.clear()
for i in range(10):
print("Questão: ", i + 1)
resposta_aluno = respostas_aluno.append(input("Escolha a alternativa: "))
nota = 0
for i in range(10):
if respostas_aluno[i] == gabarito[i]:
nota += 1
notas_tiradas.append(nota)
continuar = input("Outro aluno vai utilizar o sistema? [s/n] : ")
n_aluno += 1
print(len(notas_tiradas), "alunos utilizaram o sistema")
print("\nA maior nota tirada foi: ", max(notas_tiradas))
print("A menor nota tirada foi: ", min(notas_tiradas))
print("A media de notas da turma foi de:", sum(notas_tiradas) / len(notas_tiradas))
print(notas_tiradas)