What are frameworks ?

I’m learning how to code; Python, PHP and Ruby at the moment and people keep suggesting I learn a frameworks such as Django, Ruby on Rails and Laravel. What is a framework? What is the difference between me typing Python, PHP, HTML code into a text editor versus using a framework, is it standalone?

I’m clueless to what a framework is or what it can do for me…

You might look at this Reddit thread for answers: https://www.reddit.com/r/learnprogramming/comments/64rifd/what_are_frameworks/