Boot-camp: week-02

Overview:

Welcome to week-2 of the DSAN bootcamp!!! This week we will be covering the following topics

  • Introduction to “Base” python: python without extra packages

  • Built-in “data Types”: Numeric, Boolean, Text

  • Basic Arithmetic operations: +,-,*, etc…

  • Built-in Data Structures: lists, tuples, sets, dictionaries

By the end of this module, you will be capable of answering the following questions (give them a try!):

Note: Answering the questions is NOT required, however, the questions are designed to look like sample interview questions and will test your knowledge of the materials in this module.

  • Here is a messy set of data from Twitter (imagine, or grab some Twitter text from the internet!). We want to create a list of the most frequently occurring words. How can you use base Python to accomplish this task?
  • Why might I use a tuple instead of a list for certain situations in my data science project?
  • What are objects and classes in Python programming? What are the purposes of each?

Lecture:

An html version of the lecture notebook can be found at the following link (view lecture html).

The best way to digest this information is to download the .ipynb file and work through it yourself in Jupyter or VS code. While doing so, make sure that you understand the code entirely.

In some sense, “Understanding the code” means you can correctly predict the output of each line without actually having to run it.

Lecture video

While not required to watch, a video walkthrough of the lecture notebook highlighting important aspects of the lesson has been provided below.

VIDEO PLAYBACK SPEED: To speed up, or slow down the video, right click the video, select show all controls, click the three vertical dots on the left, and select the desired playback speed.

Assignment

Once you have “digested” the lesson, you will be able to do the assignment (view assignment html).

When you are done email the completed assignment to your designated TA using the zip file format specified in the document.

Use the following naming convention for the file: FIRSTNAME_LASTNAME_ASSIGNMENT2.zip

  • For example, If your name was Jane Doe, then the zipped folder should be called JANE_DOE_ASSIGNMENT2.zip

References

Disclaimer: This document is not an original work. It contains content from many sources and is for educational purposes only.

Sources: