Punishment is the broad term for any legal penalty, such as imprisonment, fines, or community service, imposed by a court on a convicted individual. A fine is just one specific type of punishment, and rehabilitation is a goal of the justice system rather than a penalty itself.