Explore our extensive collection of courses designed to help you master various subjects and skills. Whether you're a beginner or an advanced learner, there's something here for everyone.
Join us for our free workshops, webinars, and other events to learn more about our programs and get started on your journey to becoming a developer.
For all the self-taught geeks out there, here is our content library with most of the learning materials we have produced throughout the years.
It makes sense to start learning by reading and watching videos about fundamentals and how things work.
Data Science and Machine Learning - 16 wks
Full-Stack Software Developer - 16w
Search from all Lessons
Curated list of small interactive and incremental exercises you can take to get better at any coding skill.
Curated section of projects to build while learning with simple instructions, videos, solutions, and more.
Guides on different topics related to the technologies that we teach in our courses
The title of this lesson should be "From Python to JS", because that's the way history evolved. Python was born first, and it's way more mature. With Python, you are capable of doing much more stuff because it's a back-end language, and it has libraries and tools for anything you can think of.
On the other hand, Python is the fastest growing back-end language in the world. It is the most versatile and easy-to-code language, with one of the strongest communities.
When you compare it to other back-end languages, Python is leading in almost every functionality it offers: Data Science, AI, API developments, Web Developments, etc.
Here are some of the reasons Python has come to this point:
|Python was meant to be simple and easy. Here is the Python manifest:|
Note: No more semicolons or curly brackets anymore, declaring variables, or the confusing
|Python is faster than Java, PHP, Ruby and 90% of the other back-end languages. Only low-level languages like C++ (hard to use) or very specialized like Node.js can beat it.|
Python scalability has been proven over and over with applications like Google Search Engine, YouTube, Google Apps, etc.
|Python is Google's official language. It’s also one of the oldest languages, with huge communities around each of its libraries/tools. MIT uses it to teach code. NASA to build rockets. Quora, Facebook, Yahoo, Amazon, etc. Almost every big company in the world has to use it!||Most of the Python libraries are the best at what they do: MatLab (for data processing), Pandas (big data), Web.py (web server), Django (web framework), PyBrain (AI), TensorFlow (Machine Learning), etc. We could be here all day! The most amazing thing is that these libraries are only one |
There are only a few differences; here is the explanation:
|Number||Python has the same "Number" data-type, but it can accept more options than JS, like fractions (float) or complex numbers.|
|Undefined/Null is now: ||The |
|Array||In Python, the Arrays are called "Lists", and they are similar to JS Arrays but way more flexible and easier to work with. |
Python, on the other hand, separates the Dictionary data-type from the Object data-type. Objects cannot be informally declared. You must first define their class before being able to instantiate them.
|String||It's the same in Python.|
require command, but you need to
export the variable's files first.
In Python, you can make any folder, a package by creating a
\__init\__.py file inside of it. Then, you are able to import whatever you want into that folder without having to explicitly export anything.
node_modules folder while PIP packages are installed on the entire machine, outside the project folder. Another small difference is that NPM uses a
package.json and PIP uses a
lambda functions that basically let you use little inline anonymous functions as shortcuts.
📺 Here is a weird but amazing video explaining lambda functions: https://www.youtube.com/watch?v=25ovCm9jKfA
📺 Let's summon Socratica again to understand sorting in Python: https://www.youtube.com/watch?v=QtwhlHP_tqc
There is no way to do "switch"... but who cares? 🙂
Python brings a new kind of data-type called a "Tuple". Think about it like a super slim and fast performance List. But, like always, to increase performance, we need to decrease functionality.
📺 This is a mandatory video explaining the difference between them: https://www.youtube.com/watch?v=NI26dqhs2Rk
📺 Socratica, our great evolved specimen & friend, explains Objects in a great way: https://www.youtube.com/watch?v=apACNr7DC_s