Week #8 - MKTG 4396 - Data Toolkit (Chapter 1 & 2)

For my last post, I have decided to read and cover Chapters 1 & 2 from one of the D.A.T.A. series books: Data Toolkit: Python + Hands-On Math. Chapter 1 covers some of the basics of Python as well as why it is used in data science. There were also hands-on exercises at the end of each chapter that I wanted to do as well. The exercises were meant to be done in Google Colab, however, I already have and use my own IDE so I decided to do them there instead. 


The hands-on exercises that were at the end of Chapter 1 covered some very basic things like printing "Hello World", which is generally the first thing anyone will have you do when starting to learn Python. The other hands-on exercise was an introduction to variables which is an important basic principle that anyone interested in Python needs to understand. Below are my results from the first two hands-on activities.

Hello World:


Variables:

The second chapter is a little bit more complex but still deals with Python basics. This chapter focused on loops and conditional statements exclusively, and again had hands-on exercises at the end of the chapter. However, this time there were 4 exercises, 2 dealing with loops and 2 dealing with conditional statements. Again, below are my results from these exercises. 

Loops:


Conditional Statement:

Although the conditional statement had two parts it really only needed one picture because the first output produced no results as it was intentionally done that way. Overall, this felt like a good starting point for some of the basics of Python and I do plan on continuing through the book as I want to see where it takes me. I would assume it will get even more complex and will even add some math as the title of the book suggests, but only time will tell.














Comments

Popular Posts