Obama is very smart & graduated with a JD degree magna cum laude from Harvard law School (top 11% of the class).
He was selected as an editor of the Harvard Law Review at the end of his first year.
His GPA at Columbia was 3.7.
https://en.wikipedia.org/wiki/Barack_Obama#Education
How rare is summa cum laude at Harvard Law School?
https://www.thecrimson.com/article/2009/4/21/hls-clarifies-grading-changes-clarifying-the/
Top 1%: summa cum laude
Next top 10%: magna cum laude
The rest of the top 30%: cum laude