For me, it's a bit mixed.
When I'm at school, both back in high school and now in college, I am either able to really focus and become very productive at school or at home -- depends on where I'm at. If it's in the classroom full of students, then I just get overwhelmed with anxiety and shut down. It's hard for me to learn from teachers and so I end up reading the material myself and learning it on my own time. If it's at the school library (specifically high school), then I was really able to become very productive and get a lot of work done in less than an hour.
Now, at home, I have distractions like my phone and computer (unfortunately I need my computer now in college since I take courses related to cybersecurity and online courses). There are times when I'm able to really focus and get things done, while other times I find myself idle.
In the end, I usually get less accomplished at school overall but in certain conditions, I can get a lot more accomplished than I otherwise would at home.
_________________
"It’s not until they tell you you’re going to die soon that you realize how short life is. Time is the most valuable thing in life because it never comes back. And whether you spend it in the arms of a loved one or alone in a prison-cell, life is what you make of it. Dream big."
-Stefán Karl Stefánsson
10 July, 1975 - 21 August, 2018.