From the course: Python: Programming Efficiently

Unlock the full course today

Join today to access over 23,300 courses taught by industry experts.

Object-oriented and functional Python

Object-oriented and functional Python - Python Tutorial

From the course: Python: Programming Efficiently

Object-oriented and functional Python

- [Lecturer] Different programming languages allow and encourage different programming paradigms. These are the most important ones. In procedural programming, you write a list of instructions that tells the computer the steps it needs to follow. Procedural languages include BASIC, C, Fortran, assembly language, shell-scripts, MATLAB, and certainly Python. In object-oriented programming, you write code to manipulate a collection of objects. These have a state that is, they hold data, and they have behaviors, functions associated with them that use the data. Java, Smalltalk, C++ are strongly object-oriented. JavaScript is also object-oriented, although with a different flavor. Python allows, but does not require objects, but they can be a very powerful way to organize a program. In functional languages, you define programs and subroutines as mathematical functions, which become more important than objects. Then you…

Contents