Updated. /JL

This commit is contained in:
Jan Lerking
2024-10-24 12:27:15 +02:00
parent 19c074ae52
commit faa0c5d9b4

View File

@@ -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.