JS and Python are completely different languages. You can use JavaScript to fiddle with DOM elements client-side once HTML and CSS rendering are done. Python, however, is a server-side programming language that you can use to make your HTML more dynamic, by connecting databases and doing all kinds of server-side magic that I'm not qualified enough to comment on.
Long story short, you can't replace JavaScript with Python in what JS is was built for, but you can use them side-by-side for different things.
In terms of jumping into more real-life projects, I can recommend two sites for practice:
Hey! Welcome to the world of Frontend!
JS and Python are completely different languages. You can use JavaScript to fiddle with DOM elements client-side once HTML and CSS rendering are done. Python, however, is a server-side programming language that you can use to make your HTML more dynamic, by connecting databases and doing all kinds of server-side magic that I'm not qualified enough to comment on.
Long story short, you can't replace JavaScript with Python in what JS is was built for, but you can use them side-by-side for different things.
In terms of jumping into more real-life projects, I can recommend two sites for practice:
Cheers!
You can of course now use JavaScript server side too, just to make things a little more confusing!
nodejs.org/en/about/
Thanks