"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.
"I thought he was joking until he started walking down," Kennedy said after the event, showing off the note in front of a bank of television cameras. "It was like the best thing ever."
The fourth-grader at Aldo Leopold elementary in Green Bay already knew what she was going to do with the note: frame it along with her ticket to the event. She said she'd make a copy for her teacher.
Kennedy said she had never seen Obama before. "He's really nice," she said.
AP LIVE WIRE: The latest political news
REPORT A TYPO || GET WIDGET || VIDEO: Eyewitness News
VIDEO: ABC News || E-MAIL UP CLOSE
UP CLOSE ON FACEBOOK