Nouns ending in -in are usually masculine.
(Words ending in -ain, -ein, -oin, -aim, or -uin follow different rules.)
J'ai fait de mon fils un médecin.
I made my son a doctor.
J'ai une entière confiance en mon médecin.
I have complete faith in my doctor.
Je pense que vous devriez voir un médecin.
I think you should see a doctor.
FrenchTextbook teaches rules like this, in a full beginner course.
162 lessons, 4,000+ exercises, and 6+ hours of audio.
Try the first lesson free