Last president that was not a democrat or republican?
No context provided
Last president that was not technically a democrat or republican, as part of the National Union Party?
Andrew Johnson Johnson
No context provided
Last president that was not a democrat or republican but part of the Whig Party?
Millard Fillmore Fillmore
List of presidents of the United States
https://en.wikipedia.org/wiki/List%20of%20presidents%20of%20the%20United%20States
The United States has operated under a two-party system for most of its history.[313]
United States Parties and elections
Since the general election of 1856, the major parties have been the Democratic Party, founded in 1824, and the Republican Party, founded in 1854.
United States Parties and elections
The National Union Party was the temporary name used by the Republican Party and elements of other parties for the national ticket in the 1864 presidential election that was held during the Civil War.
National Union Party (United States)
The Whig Party was a political party active in the middle of the 19th century in the United States. Alongside the slightly larger Democratic Party, it was one of the two major parties in the United States between the late 1830s and the early 1850s as part of the Second Party System.[10]
Whig Party (United States)
The United States has operated under a two-party system for most of its history. Since the general election of 1856, the major parties have been the Democratic Party, founded in 1824, and the Republican Party, founded in 1854. The National Union Party was the temporary name used by the Republican Party and elements of other parties for the national ticket in the 1864 presidential election that was held during the Civil War. Andrew Johnson was elected under the National Union Party and was the last president that was not technically a Democrat or a Republican. The Whig Party was a political party active in the middle of the 19th century in the United States. Alongside the slightly larger Democratic Party, it was one of the two major parties in the United States between the late 1830s and the early 1850s as part of the Second Party System. Millard Fillmore was the last president that was elected as a part of the Whig Party.