As a teenager, Mr. Obama, son of a white woman from Kansas and a black father from Kenya, wanted little more than to feel like an African-American. Training his eyes on a grainy television in his grandparents’ Hawaii apartment, he imitated the dance steps on “Soul Train” and Richard Pryor’s outrageous jokes. He locked himself in his bedroom to read James Baldwin and Malcolm X.