most countries in the world allow prisoners to vote unless their voting rights have specifically been taken away as part of their sentence (usually because the crime in question specifically involved fucking with elections, and even then it's pretty exceptional) - the US is one of the exceptions, alongside Australia, New Zealand and India
shockingly, most of the world has not legalized crime
