Electoral history of John F. Kennedy, who served as the 35th president of the United States (1961–1963) and as a United States senator (1953–1960) and United States representative (1947–1953) from Massachusetts.