How do youth courts carry out punishment because of this?
Most countries have different courts to deal with offenders below a certain age. In England, Wales they have youth courts that hear cases committed by children age 10-17yrs.
They are less formal - defendants are called by their first name and members of the public are not normally allowed in - cannot send anyone to prison but can impose sentences including a detention and training order.