Roald was talking to somebody and The headmaster said he was cheating. So he got caned so that was his lesson don’t talk when your not supposed to or you will get yourself in trouble.

When my little sister hits me I get aggravated and I hit her back. Then my mom comes in and we both get in trouble instead of just her getting in trouble I got in trouble too.

I think he wrote the book Matilda because since he had a mean head master he put that Matilda had a mean headmaster. I think since he liked chocolate he got inspired by that to write charlie and the chocolate factory.