I'm relatively new to this and I am having and small issue in where to place the return in my scopes and basically figuring out the proper syntax for this.
func isPassingGrade(for scores: [Int]) -> Bool {
var total = 0
for score in scores {
total += score
if total >= 500 {
return true
}else {
return false
}
}
}