Q:

What was obama before he was president

Answer

President Barack Obama was a senator from Illinois prior to moving into the White House. ChaCha!