I played around with PHP in order to make hacks on WordPress themes, which again I hated due to system-fighting.
I learned base R (pre RStudio/tidyverse) for stats classes, which I hated even more than the previous two since everything felt combersome.
Then just for fun I installed Linux on my laptop and experimented scraping APIs with Python with only a few lines of code and I got hooked.
Nowadays I use primarily Python for both work and personal projects. If I had started with learning Python, I would have had a much different career path!