http://diveintopython.org/toc/index.html or http://www.ruby-lang.org/en/documentation/quickstart/
"what each language is specifically used for when developing"
They're used for all kinds of things. Not worth worrying about IMO.