Key features of python

  • Python is well suited to object oriented programming inthat at allows the definition classes along with composition and inheritance.python does not have access specifiers [ like C++ public , private]
  • In python , 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.
  • Python is an interpreted language that means unlike languges like C and its variants , python does not need to be complied before itis run , other interpreted languages include PHP and Ruby.
  • Python is dynamically typed , this means that you don't need to state the types of variables when you declare them or anything like that. we can do things like x=111 and then x="I" m a string" without error.
  • Writing python codeis quick but running it is often slower than compiled language. python allows the inclusion of C based extensions so bottlenecks can be optimised away and often are.
  • The numpy package is a good example of this , it's really quite quick beacause a lot of the number crunching it does isn't actually done by python. 
Posted on by