How do I make scripts with Python?

I want to make scripts something like sorting files in folders according to the extension, automatically download subtitles for a movie. How can I do something like that? How do I get started?

If you don’t know any python, then you’ll want to start at the beginning with a good python curriculum. If you already know how to code in another language, most of it should go pretty quickly.