Complex sentence: He studied medicine at St. Andrews and at Edinburgh, where he took his degree in 1776, but did not practice, devoting himself instead to the cause of prison reform.
Split into simpler sentences: He studied medicine at St. Andrews and at Edinburgh, where he took his degree in 1776. But he did not practise, devoting himself instead to the cause of prison reform.