I recommended to a friend to learn some functional programming using Python to expand his knowledge and overcome programmer's fatigue.
I chose Python because that way there's a good chance he'll be able to use the new knowledge in practical daily work.
I tried to find him some tutorials, and found a lot of guides - diving deep into how to use map
, reduce
, filter
, etc., but don't provide exercises where he can learn while coding.
Where can I find a tutorial that uses functional python to solve problems while teaching?
An optimal answer for me would be homework from a functional programming course, that needs to be written in Python. Such a thing is probably rare because an academic course will usually prefer a purer functional language for such work.
Python, by contrast, does support functional programming but contains features of other programming models as well.
Functional programming is a programming paradigm in which we try to bind everything in pure mathematical functions style. It is a declarative type of programming style. Its main focus is on “what to solve” in contrast to an imperative style where the main focus is “how to solve“.
There are theoretical and practical advantages to the functional style: Formal provability. Modularity. Composability.
Yes, Python support both Object Oriented and Procedural Programming language as it is a high level programming language designed for general purpose programming. Python are multi-paradigm, you can write programs or libraries that are largely procedural, object-oriented, or functional in all of these languages.
Maybe http://diveintopython.net/functional_programming/index.html helps.
Some other useful links are:
I was told about this website when I first started learning. It is a collection of riddles you need to solve using Python. It can be fun.
http://www.pythonchallenge.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With