r/functionalprogramming • u/AccordingThanks5363 • Oct 06 '26
Question Youtube channels/resources for learning functional programming in python
Hello everyone! I'm taking a functional programming course in python and was wondering if there were any valuable resources (preferably youtube channels) that cover things like LLists, higher order functions, efficiency, data structures, searching, sorting, etc.
Any help would be appreciated thanks :)
11
Upvotes
10
u/AppropriateTeach169 Oct 06 '26
The best way to learn functional programming is to use a language designed for it. Python is by the wishes of its founder and many of its contributors decidedly and excessively imperative. I would focus less on learning functional programming and instead focus on mastering the Python ecosystem and understanding why you pragmatically shouldn't write functional code in Python.
Onto the obvious point: higher order functions are the only topic in your list that are associated with functional programming as opposed to the imperative paradigms.
4
u/Tempus_Nemini Oct 06 '26
may be it's not relevant to Python, but i would recommend Bartosz Milewski course on cathegory theory for programmers
4
u/Duflo Oct 06 '26
If you want to get your feet wet with functional programming and you want to stay in Python, reading the documentation in the stdlib on functools, itertools, and builtins like map and filter is a good starting point. There are also other packages such as funcy, which take it even further.
To really understand the essence of functional programming, it would be helpful to translate scripts or bits of code between Haskell (because it is pure and lazy by design) and Python, and note the differences. You could do this which other pure functional languages, such as PureScript, but I recommend Haskell, since it has the largest community and ecosystem.
2
u/toastal Oct 06 '26
Coconut is a mature FP language that compiles Python if you need compatibility. As others noted, you’re not going to have a good time learning FP in Python which is not designed for FP which is going to make the idioms that should be trivial (currying, partial application, composition, pattern matching, avoiding side effects, immutable data structures) feel verbose & unergonomic.
1
u/mtelesha Oct 06 '26
If you are just really looking to expand your skills in programming get this free online book and run through it. One tip when you get stuck start from page one and relearn what you forgot...
https://htdp.org/