Lecture 1 Notes
Lecture 1 Notes
• Languages like C++ or Java, you must first compile it, and then run
it. But in Python, there is no need to compile it. Internally, its
source code is converted into an immediate form called bytecode.
So, all you need to do is to run your Python code without
worrying about linking to libraries, and a few other things.
• By interpreted, we mean the source code is executed line by line,
and not all at once. Because of this, it is easier to debug your
code. Also, interpreting makes it just slightly slower than Java, but
that does not matter compared to the benefits it has to offer.
Object-Oriented, Extensible
• A programming language that can model the real world is said to
be object-oriented. It focuses on objects and combines data and
functions. Contrarily, a procedure-oriented language revolves
around functions, which are code that can be reused. Python
supports both procedure-oriented and object-oriented
programming which is one of the key python features. It also
supports multiple inheritances, unlike Java. A class is a blueprint
for such an object. It is an abstract data type and holds no values.
• If needed, you can write some of your Python code in other
languages like C++. This makes Python an extensible language,
meaning that it can be extended to other languages.
Embeddable, Large Standard Library