Modifique o Programa 6.2 para ler 7 notas em vez de 5.
Resposta:
##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Quarta Edição - Março/2024 - ISBN 978-85-7522-886-9
#
# Site: https://python.nilo.pro.br/
#
# Arquivo: capitulo 06/exercicio-06-01.py
##############################################################################
notas = [0, 0, 0, 0, 0, 0, 0] # Ou [0] * 7
soma = 0
x = 0
while x < 7:
notas[x] = float(input(f"Nota {x}:"))
soma += notas[x]
x += 1
x = 0
while x < 7:
print(f"Nota {x}: {notas[x]:6.2f}")
x += 1
print(f"Média: {soma/x:5.2f}")