a legal code is a written code of laws that are enforced. this may deal with things like police, courts, or punishments. a lawyer, jurist or attorney is a professional who studies and argues the rules of law. in the united states, there are two kinds of attorneys - "transactional" attorneys who write contracts and "litigators" who go to court. in the united kingdom, these professionals are called solicitors and barristers respectively.