No language is a complete swiss knife, but JavaScript and Python are the closest you can go. Here I'll just point out why will you want to learn them.
I love Python, just for the readability, no other reasons required.
No language even come close to the way you can express code in python. They are highly readable and maintainable.
Python is used in multiple facets:
Pros:
Cons:
I like JavaScript because it runs everywhere.
Javascript run on almost all the devices you will see around you and that makes it an ideal candidate to learn. If you are just into web development you won't survive long without knowing JS.
Pros:
Cons:
If you asked me I will say today, surviving without javascript is difficult if not impossible. It is also very tempting to just master one language and use it everywhere. I will say learn both and use anything, what will matter is the end product or the deliverable. How fast you can solve a problem is the question? Choosing the right tool for the job is just a way to achieve it.
In the end I still love Python, but I write most of my code now a days in JS. :)
Yes.
My opinion:
I hate javascript for the simple reason it's REALLY bad at maths point and case
Javascript is the king ♔ ! Honnestly, the learning curve in python is low compared to node. There is no python -fatigue. When you chose python, you know where you are going for the next 2 years. And, you have to learn so many concepts that are language/écosystem indépendant. So if you are new in dev, python is the best choice. But, if you have an experience of 2 or 3 years, javascript is a good second language to learn.
Cheers !
Just because something is gaining a huge popularity in media, does not mean that "old" technologies should be immediately replaced.
Today it is JavaScript with a billion different frameworks and tomorrow - well who knows. But that does not mean that PHP, Ruby or Python are obsolete - they are not and there are many many serious projects written using these languages so, yes, it has a lot of sense to learn it.
... Yes.
EDIT: I'm not sure if I even follow the question. JS isn't a drop-in replacement, not even close, and Python doesn't look like JS any more than it does any other in the C family.
If you only want one language to work with and are already learning JS then, by all means, stick with it. It's a nice language.
If you think you should learn another, go for it (and not necessarily python). It's highly unlikely that one language will die or lose popularity just because of another language. Specially not a popular one such as python.
Every language have their own trade-off, you only need to know for what is good every language and know all the environment of this language.
yes .... every language does make sense python is still leading in ML and has superior datastructures and usability to node.
but pick one language and master it first....
Remco Boerma
CTO@NPO, python dev, dba
IMHO it always makes sense to learn python. Web development isn't necessarily the reason.