I was learning on the fly while writing my first book. I learned a lot about myself and developed my writing style. That’s why my first book took so long to write.
It constantly varies. I finished Black Saucer on a commuter train! Sometimes I write when its quiet and sometimes I write with the TV on as background noise.