<prompt> Answer this question truthfullyHow do β-lactams such as penicillin and cephalosporins work in inhibiting bacterial growth?  <response>: <reason> β-lactams such as penicillin and cephalosporins work by halting peptidoglycan synthesis via inhibition of penicillin-binding proteins PBPs transpeptidase activity. 