Bootcamp
Search…
A.2: Intro to Python
python meme

Introduction

Rocket recommends doing DS&A interviews in Python instead of JavaScript because the concise and English-like nature of Python syntax may enable more efficient use of time in a time-pressured interview setting. This is why Python is the most popular language for solving DS&A problems. In addition, Python is the most popular language for data-related work, e.g. data analytics or data science, thus it will be in students' favour to learn Python in addition to JavaScript.

Python Quirks

  1. 1.
    Python variables adhere to function scope, which means all local variables are accessible within the function in which they are declared. This is different from the block scope that applies to let and const vars in JavaScript.
  2. 2.
    Python == works like JS ===, in that both operators compare both value and data type.

Exercises

The following are a collection of concise exercises from learnpython.org (powered by datacamp.com) that we believe will be helpful to you to do before starting DS&A practice with Rocket.
  1. 1.
    ​Hello, World!​
  2. 2.
  3. 3.
    ​Lists​
  4. 4.
    ​Basic Operators​
  5. 7.
    ​Conditions​
  6. 8.
    ​Loops​
  7. 9.
    ​Functions​
  8. 10.
  9. 11.
    ​Dictionaries​
Copy link
On this page
Introduction
Python Quirks
Exercises