Is it worth learning web development?

Thanks for that guys. I’m paying for Z security web application hacking course on Udemy and also an advanced burp suite course so that I can see what I can learn from this before diving into web development. I’m going to learn Javascript and I have already started on python.

How much python do you recommend learning? Do I just learn the basics and then start using black hat python and violent python to learn how to cater it to pentesting?