In this first video, we'll explore the concept of functional programming in Python. Python is a versatile language that allows you to solve problems in different ways. One such approach is functional programming, which is different from the usual way of writing programs in Python.
Basic Concepts of Functional Programming:
1. Avoiding Side Effects: Normally, when you write a function in programming, it might change some values or data outside of the function. This is called a side effect. In functional programming, we try to avoid this. Instead, we focus on making functions that don't change anything outside of themselves.
2. Referential Transparency: This is a fancy term, but it simply means that a function always gives the same result with the same inputs and doesn't affect or get affected by anything else in the program. For example, if you have a function that calculates the square of a number, it will always give the same result for the same number.
3. Pure Functions: These are functions that don't cause side effects and are referentially transparent. They're like a maths formula: you put something in, and you always get the same result out, without changing anything else.
4. First-class Functions: In Python, functions are treated like any other variable. You can assign them to variables, pass them around in your program, and do all sorts of things with them, just like you would with a number or a string.
--
🔗 All source code used in these videos is available on GitHub:
https://github.com/axopsacademy/pytho...
👊 Help us empower the innovators of the future by spreading the word!
Share #AxOpsAcademy https://www.axops.tech/
👉 Connect with the presenter on LinkedIn:
https://www.linked.com/in/ali-saif
👉 Follow AxOps Academy on LinkedIn:
/ axops-academy
--
🙏 IMPORTANT REQUEST: Please please please.. if you find this content useful, please do consider liking and sharing it on YouTube, Twitter (X), Facebook, LinkedIn, and anywhere else you feel would help bring awareness from data and cloud practitioners to AxOps Academy content.
📈 AxOps Academy relies almost exclusively on organic growth, primarily through recommendation via informative content.
📊 YouTube’s algorithms measure the quality of AxOps Academy content on the basis of:
Reach
Engagement
and several other related variables.
👊 With seemingly small actions such as:
Clicking the Like button
Clicking the Subscribe button
Clicking the Share button (on YouTube) and distributing our content
etc
… YOU inform YouTube’s algorithms of your sentiment towards AxOps Academy, thereby directly helping us MASSIVELY in achieving organic growth 🚀
Thank you very much for your kind consideration! 🙌
--
#python #pythonprogramming #dataengineering #datascience #machinelearning #artificialintelligence #ml #ai
In questa pagina del sito puoi guardare il video online 2.1 - What is Functional Programming? | Advanced Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato AxOps Academy 07 aprile 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 15 volte e gli è piaciuto 0 spettatori. Buona visione!