There are many sites like Leetcode, Codewars and so on, where people solve various coding problems. A lot of people use these sites to make preparations for job interviews, but recently I have found that these sites are supporting more and more programming languages, so they can also be a great helper if you want to learn a new programming language.
The point is that when you are going to solve the coding problems, you will have to figure out how to implement conditions, loops, and how to utilize different data types, e.g., string, list, array, tuple. Every language has its official documentation for these concepts, but documentation is usually too tedious to read through. On the contrary, solving problems is great fun. Also, you will have a clearer purpose when you have to turn to the documentation.
If you want to have a taste of a new programming paradigm, for example, functional programming, you can also practice yourself via these coding problems
What is your opinion？Where would you like to go when learning a new language?