“Do you need me to write a note?” Obama asked. The crowd laughed, but the president was serious.

On a piece of paper, he wrote: “To Kennedy’s teacher: Please excuse Kennedy’s absence. She’s with me. Barack Obama.” He stepped off the stage to hand-deliver the note — to Kennedy’s surprise.