Acetanilide is less basic than aniline because the acetyl group withdraws electron density from the nitrogen through resonance, making the nitrogen less available for protonation. This explains why acetanilide is less basic. Hence, both the assertion and the reason are true, and the reason correctly explains the assertion.