This cheat sheet serves as high-level comparisons between the two languages. The arithmetic operators between Javascript and Python are identical — except for one. Python is missing the strict equality/inequality operators. Since Python treats all numbers as floats (decimal numbers), you can use the double division sign to get an integer.

5m read timeFrom kevinbotero.medium.com
Post cover image
3 Comments

Sort: