You should learn both if your purpose is web development :D.
Simple - if choice == Web then lang = JS else lang = python
Python is a Powerfull programming language good for beginers Js is also powerfull but is not much as good for Beginers they are used for different things to But i say JS but it is hard though! id say for u Python
Is Python better than js ? No, both have their pros & cons. Both are scripting languages but I consider js to be used for the front end side while py stays on the backend side. If your focus is to develope websites then I would recommend js.
js is basically for web development, and it is not suitable for serious app development. But python can . However electronjs, coffescript, typescript help to develop apps from js