when learning a new language I like to mix learning by doing (as others suggested) with a more "structured" and in depth approach, such as reading a good technical book about the language. A good balance of the two of course is highly subjective and depends on each objectives, resources and approach to learning. Good luck with your Python learning 💪🏻