Sisko Cherono
3 min readJun 25, 2021

--

WEEK ONE:PYTHON

Skaehub developer program did hold a boot camp and this was the week one. The week commenced on Monday as I stated on my previous post ( I know you didn’t read it, so please go back and read it. I promise it’s worth your five minutes).

Right unto the assignments that were done and handed in daily. For day one, it was the usual python programs. A password generator, a leap year determiner and one to remove duplicates from a list. In fear of redundancy from my previous post, I’m afraid I will not delve so much into day one’s challenges. Day one’s a wrap, let’s talk about day two. You remember I had told you in blog post one, that you should remind me to tell you about day two? Well, looks like I don’t need any reminder to do so. Let’s jump right in!

Challenge one of day two: Creating a Python project to read public data returned from URL, and parsing JSON to a dictionary object. So a snippet of the solution, you import webData. For the complete solution you can check out the github repo. The link: https://github.com/Sisco-C/dev-program/blob/main/daytwo/2question7.py There you have it.

On my repo, there are other six solutions to the challenges we had to solve. You have the liberty to go through them and see how you like them. If they impress you, you can leave me a clap on here. If you think there’s something I need to fix, you can leave a clap as well. In the case where you are just nonchalant about the solutions, just clap, really. All I’m saying is, just clap for me because that’s some good work I have done over there, haha. On this point actually what this week one of boot camp has led me to know is that you have to clap for a developer. They do need it, a lot! This is me clapping for all my team-mates. You guys are the real deal! Now, back to python code!

Day three of boot camp is here! Just three solutions sent to the Slack channel. Problem one: Writing a NumPy program to get the dates of yesterday,today and tomorrow. You import numpy as py which will let you use the npdatetime64() func to calculate the current day’s date. Using the timedelta64() to calculate tomorrow’s date and yesterday’s date.

Day four of boot camp : Writing a Python program to calculate the distance between Nairobi City and Cairo City. First you import haversine. Input the coordinates for both cities. As a last step, use hs.haversine to compute the distance. There you have your distance! How easy, right?

Challenge two:Write a Python function to get the city, state and country name of a specified latitude and longitude using Nominatim API and Geopy package. A brief overview of what Nominatim API and Geopy really are. GeoPy makes it easy for Python developers to locate the coordinates of addresses, cities, countries, and landmarks across the globe using third-party geocoders and other data sources. On the other hand Nominatim uses geopy. That is the relationship between the two of them, really. Nominatim is used to search the OpenStreetMap and generate synthetic addresses. You’ll need to use geocoder() as well.

To finalize on this article, the first week of bootcamp was extensive as we covered a lot on the verstility of Python as a language. THis ranged form data science to cybersecurity, and all the way to the use of python for backend development. This is just some of the many things python can be used by developers to solve real-world problems.

Problem solving skills were prominent during this first week. Having to think through challenge and come up with the most viable way to tackle it, is a skill you will have to muster. Sometimes, looking through a problem, it’s easy to handle it, but for other times, it gets hard to do so. During such instances you’ll need to think, and think, nd think a lot more. But dont forget to be easy and kind to yourself.

We’ve come to the end of this article. I hope you have had fun going through it. See you on my next post. Remember, use pip install pandas, and not pip install panda(remember to type in the s)

--

--