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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Object-oriented and functional Python1m 51s
-
(Locked)
Divide and conquer with Python classes6m 35s
-
(Locked)
Exploit class inheritance5m 58s
-
(Locked)
Functional techniques in Python6m
-
Function decorators5m 31s
-
(Locked)
Challenge: Bale of turtles2m 29s
-
(Locked)
Solution: Bale of turtles3m 8s
-
(Locked)
-
-