Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What good homework style tutorials are recommended for learning functional programming in Python? [closed]

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.

like image 314
Tzafrir Avatar asked Sep 09 '11 22:09

Tzafrir


People also ask

Can you use Python for functional programming?

Python, by contrast, does support functional programming but contains features of other programming models as well.

Which type of programming does Python support functional programming?

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

Which of the following are theoretical and practical advantages to the functional style in Python?

There are theoretical and practical advantages to the functional style: Formal provability. Modularity. Composability.

Is Python object-oriented or functional programming?

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.


2 Answers

Maybe http://diveintopython.net/functional_programming/index.html helps.

Some other useful links are:

  • Functional Programming HOWTO
  • Functional Programming with Python (by Pramode C.E.)
  • Functional programming with Python (by CHRISTIAN HARMS)
like image 200
rocksportrocker Avatar answered Nov 14 '22 21:11

rocksportrocker


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/

like image 31
Mathieson Avatar answered Nov 14 '22 22:11

Mathieson