Edinburgh is colder than Cornwall.
Edinburgh lies in Scotland, in the northern part of the UK (around 55.9° N latitude), while Cornwall is in southwestern England (around 50.4° N). The further north you go, the lower the average temperatures, especially in winter.
The UK's position in the Northern Hemisphere means the sun's angle is lower in the north, resulting in less solar heating. Additionally, Edinburgh's inland and coastal exposure to colder North Sea air masses contributes to its cooler climate compared to Cornwall's milder, maritime-influenced weather.