Está dando um erro aqui na execução do projeto. Exercício 05 Corrigindo bugs
import UIKit
var notas = [9, 6.5, 4, 8.25]
var soma: Double = 0
for nota in notas {
soma += nota
}
print(soma / notas.count)
error: MyPlayground.playground:9:12: error: binary operator '/' cannot be applied to operands of type 'Double' and 'Int'
print(soma / notas.count)
~ ^ ~
MyPlayground.playground:9:12: note: overloads for '/' exist with these partially matching parameter lists: (Double, Double), (Double, Measurement), (Int, Int) print(soma / notas.count) ^