4 years of college
4 years of medical school (to become a doctor/MD or DO- 2 different types of medical school)
3 years of residency training in pediatrics (other specialties may have different training lengths, but the minimum amount of residency training is 3 years- for highly specialized doctors it may be 8 years)
Everyones path into medicine is different and can take varying amounts of times to reach your goals. A typical track is 4 years of undergraduate schooling after high school, 4 years of medschool afterward and a minimum of 3 years of residency. However, one may consider taking gap years to focus on studying for MCATs, doing research or even gaining clinical experience. The process is tailored to you and your comfortability and goals. Hope this helps!
4 years medical school
3 years of residency at a hospital which is a training period but you are paid a salary .
If you want to be a more specialized pediatrician for example a pediatric cardiologist you can do a fellowship which is more training that is paid as well . But to be a general pediatrician you can start practicing after you finish a three year residency