Before and after the election of Barack Obama as the first African American president of the United States in 2008, the idea of a black president has been explored by various writers in novels (including science fiction), movies and television, as well as other media. Numerous actors have portrayed a black president. Such portrayals have occurred in both serious works and comedies.