From faa0c5d9b47f274c1cb28095db844aefb06010f2 Mon Sep 17 00:00:00 2001 From: Jan Lerking Date: Thu, 24 Oct 2024 12:27:15 +0200 Subject: [PATCH] Updated. /JL --- Intermediate/basics/programming_paradigms.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Intermediate/basics/programming_paradigms.py b/Intermediate/basics/programming_paradigms.py index cc947fd..5926932 100644 --- a/Intermediate/basics/programming_paradigms.py +++ b/Intermediate/basics/programming_paradigms.py @@ -1,7 +1,7 @@ """ A short description of the 3 main programming paradigms in Python - Object Oriented Programming - OOP -- Procedure Oriented programming - POP +- Procedure Oriented Programming - POP - Functional programming """ @@ -120,3 +120,6 @@ if __name__ == "__main__": return mylist[0] + sum_the_list(mylist[1:]) print(functools.reduce(lambda x, y: x + y, mylist)) + +# You don't have to adhere to 1 specific paradigm. +# They can be mixed in an application, and usually are.