John F. Kennedy was an American politician who served as the 35th president of the United States from 1961 until his assassination near the end of his third year in office.