Unlike pyrrole, the unshared electron pair on the pyridine nitrogen atom does not participate in the large π system and can bind to protons. Therefore, pyridine is more basic than pyrrole and aniline
Unlike pyrrole, the non shared electron pairs on the nitrogen atom of pyridine do not participate in the large π system and can bind with protons. Therefore, pyridine is more alkaline than pyrrole and aniline
Unlike pyrrole, the unshared electron pairs on pyridine nitrogen atoms do not participate in the large π system, but can be combined with protons. So pyridine is more alkaline than pyrrole and aniline.