When it comes to writing or doing course work for university or I suppose even HS, where do you tend to do it?

I used to be big on doing it all in my room, but over the past few weeks, I've been making an effort to do it either in my school's library, in a coffee shop, or anywhere where I'm less inclined to be distracted, and I think I'm much more successful in those settings. Noise doesn't bother me when I work, but if I'm in my house, I interrupt myself a million times with going to clean a corner in my room or getting a drink or any other number of silly things.