Just finished a BootCamp like myself and thinking about learning Python? You made a great choice as Python is the third most used language in today’s programming world.
If you want to learn about the top 10 popular languages in 2020 read my Classmate’s Ben story here :
The Top 10 Most Popular Coding Languages and their Uses in 2020
TIOBE Programming Community Index: This index ranks the global popularity of computer languages based on popular search…
So I decided every time I learn something new, I compare it to both Ruby and JavaScrip to reinforce my knowledge in JS and Ruby.
Which Python to learn, Python 2 or 3 ?
There are so many debates on that, but for conclusion, Python2 will officially retire at the end of 2022 while most companies are switching from Python2 to Python 3.
1- Data Types
- In the screenshot below, I realized while studying Python how useful to check the data types in all three languages. and the difference was not that big, but the way to check the data type is.
2- Math Operations
- Python comes really handy and easy, you don’t have to write code to check something like other languages, you can just check if (6 / 2 is 3) or use keys like or , and.
- Importing random: simply by writing import random.
- True and False have to be written that in Python way unlike JS and ruby (true, false)