What are the key features of Python?
-
Python is an interpreted language. That means that is a simple language, it does not need to be compiled before it is run.
-
You don’t need to indicate the types of variables when you declare them.You can do things like x=111 and then x=”I’m a string” without error
-
You can use Python in many areas. Web and big data applications, automation, scientific modeling and many more. It’s also often used to fill the gaps in other programs written in another language
-
Writing Python code is quick but running it is often slower than compiled languages. Python allows the inclusion of C-based
extensions
, you can optimize your code with these extensions. TheNumpy
package is a good example of this, it’s really quick because python doesn’t do much of the number processing. -
Functions are first-class objects. This means that they can be assigned to variables, returned from other functions and passed into functions. Classes are also first class objects
The first class objects are program entity which have these five characteristics
- Can be created at runtime.
- Can be assigned to a variable.
- Can be passed as a argument to a function.
- Can be return as a result from a function.
- Can have properties and methods