A.2: Intro to Python
python meme


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.


The following are a collection of concise exercises from (powered by 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.
  4. 4.
    ​Basic Operators​
  5. 7.
  6. 8.
  7. 9.
  8. 10.
  9. 11.
Copy link
On this page
Python Quirks