And Python got popular cause of LLM AI thing. It is a shame, cause it is quite slow. I had some good time with jython back in the 2 days, but really wished something more elegant (nim/rust/ocaml) has taken over this AI thing instead of python.
One thing is for sure, don't get tight down to one language cause it is popular today. Go with whatever make sense for you and your project.
There has been several other events like that (Django, Pandas and data science..). I don't think Python's popularity can be ascribed to any single event, it just happens to be a language that is reasonably close to pseudocode with an excellently thought-out (I mean best in the industry) standard library. Python is practical, first and foremost. That's why it won, unlike other languages it doesn't really have an ideological agenda.
Zope predates all of those, and slowly as you say people got interested and started using it for other stuff, like being a better Perl.
Python has an agenda as well, Guido has said multiple times it was a language designed for teaching programming, and one of the reasons Zen of Python came early on.
As others have said, python has been popular for about 20 years and niche for another decade before. It's the default non-C of a ton of libraries and frameworks.
Python isn't popular because of LLM's. Python is used for LLM's because it's popular. You can replace LLM in that with dozens of other labels and it's still true.
Before AI, Python was still extremely popular for any sort of data science (possibly because of numpy first, then pandas, but I don't claim any historical knowledge here). And independent to that it was, before the raise of server side JS, one of the most popular server side web languages (probably still is).
Also around the mid '00 it started replacing perl as the unix scripting language of choice.
Saw your comment earlier, soon after you posted it, and was not going to reply, because others had already done so, but on second thought, I decided to reply, because I realised I had something more to add, that others had not mentioned (much):
>And Python got popular cause of LLM AI thing.
Python got wildly, maybe exponentially more popular because of LLM AI thing (sic), but only in the last few years.
There, fixed that for you.
Much before that, Python was already quite popular for a long time (although it was slow to take off initially), and was used in a lot of areas, including web dev - Django (Disqus, Instagram?), Flask, TurboGears, Pyramid, Tornado (FriendFeed), Zope, Plone, and many more web frameworks, and apps built on them, PDF generation (ReportLab, more), scientific programming (Numeric, NumPy, SciPy, more), data science, ActiveState, system administration (e.g. on some Linuxes, at least Ubuntu, IIRC), and even GUI app development (PyQt, Tkinter, wxPython). I read somewhere, quite a while back, that the Dropbox GUI clients on both windows and Linux, maybe on Mac OS too, were written using Python and wxPython.
Google some of those project names, and see the start dates of those projects. That will give you a clue about how long it has been in use.
Google was using Python a lot from many years back, on the front end of its web properties, apart from other uses that I would not know about.
And tons of startups and corporates used Python from long back, and still do.
I know some of these things, because I have worked with Python from a long time, starting with v1.5, with light use, and with heavier use from v2.0 or so.
One thing is for sure, don't get tight down to one language cause it is popular today. Go with whatever make sense for you and your project.