I think you got off easy. I wouldn't tolerate such whining. You're not in grade school any more. Homework? Coursework? It's all the same. You should be way past the level of insignificant makework that doesn't really count. please.
You got lucky with that prof on a technicality. Count your blessings and learn from it.