Answer
The provided question does not reflect an accurate historical event. John F. Kennedy, the 35th president of the United States, was a member of the Democratic Party throughout his political career. There is no evidence to suggest that he ever switched to the Republican Party.