We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Grading Students
Grading Students
Sort by
recency
|
4043 Discussions
|
Please Login in order to post a comment
For Python 3:
In java, Using this code in for-loop array:
func gradingStudents(grades: [Int]) -> [Int] { // Write your code here grades.map{ grade in if grade > 37 { let diff = 5 - (grade%5); return diff < 3 ? grade + diff : grade; } else { return grade; } } }
Python 3 Kindly ignore the return indentation. I don't know why, it is not getting deleted