In the 2004 Presidential Election, Senator John F. Kerry beat President George W. Bush in Pennsylvania 2,938,095 (50.92%) to 2,793,847 (48.42%). Most recently, in the 2008 Presidential Election , Democrat Barack Obama defeated Republican John McCain in Pennsylvania, 3,184,778 (54%) to 2,584,088 (44%). The state holds 20 electoral votes. [ 52 ] Further