Learn to divide and ignore the remainder

Photo by Dan Meyers on Unsplash

What is Integer Division?

quotient = 8 / 3;
whole_number = Math.floor(quotient);
console.log(whole_number); // prints 2

Integer Division in Python

Get rid of cumbersome elif trees with pattern matching

Photo by elen aivali on Unsplash

Starting in version 3.10, one of my last grievances with Python — relative to other languages — is being addressed: the beloved switch statement.

What is a Switch Statement?

A simple JavaScript function to find all unique values

Photo by Jakob Owens on Unsplash

Starting Data

Don’t get duped by dupes

Photo by Matthew Henry on Unsplash

For Loop with .indexOf()

Refactor a three-step algorithm into a one-liner

Photo by Nick Fewings on Unsplash

Sample Input & Output

records = [
{ "id"…

Photo by Kelly Sikkema on Unsplash

A simple and free strategy to fight against the scalpers and bots

Installation to execution in 10 minutes

Photo by CDC on Unsplash

A crucial next step for budding Pythonistas

Photo by Laurens Derks on Unsplash

The spiritual successor to NodeJS

Photo by Blanca Paloma Sánchez on Unsplash

Learn to use the range() function

Photo by Annie Spratt on Unsplash

Manually Counting

Jonathan Hsu

Top writer with 2M+ views. Follow me at medium.com/code-85 and medium.com/growth-85

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store