let studentScores = [
“Aziz”: 82,
“Abdullah”: 91,
“Ahmad”: 48,
“Hamza”: 67
]
var studentGrades = String: String
for (student, score) in studentScores {
var grade: String
if score >= 90 {
grade = “A”
} else if score >= 80 {
grade = “B”
} else if score >= 70 {
grade = “C”
} else if score >= 60 {
grade = “D”
} else {
grade = “F”
}
}
في الكود ذا مافهمت صراحة وش المطلوب مني اسويه