An apprenticeship is a certain amount of time during which a person will be trained in a particular skill through real-world experience. Training usually occurs by working with someone who helps him learn. (noun)
On-the-job training, where you learn by doing, is an example of an apprenticeship.