How old was roald dahl when he wrote his first book?

Looking at some of his websites and info it s unknown when he wrote his first book he wrote story's at the age of 12 and at 19 wrote a book (around 19).