I got a RaspberryPi long time ago but never had the chance to play with it. Recently I finally started looking into doing some small IoT projects. And before getting into that, with the growing interest of image-processing and scraping and… endless things to learn (😂), I decide to learn Python, which is also the language recommended by the RaspberryPi developer community.
I have been coding along an Udemy Python course to learn the basics, and want to get familiar with this language as fast as possible. To get my hands dirty, I figure I should expose myself to this language more than just course exercises. Since I have learned some syntaxes and with the problem solving skills I had from my day-to-day experience working with JavaScript, I decided to boost my familiarity of Python with the Leetcode Beginners Guide.
This guide is a good starter with basic data structures. I have come across one of the interesting problem sets, where Python’s simplicity surprises me. So here is my solving process for 1342. Number of Steps to Reduce a Number to Zero: