Functional programming in Python

  1. Programming Paradigms
  2. Functional programming
  3. Iterators (Iterables)
  4. range
  5. range with list
  6. range vs. list size
  7. for loop with transformation
  8. map
  9. map with list
  10. size of map
  11. map delaying function call
  12. map on many values
  13. double with lambda
  14. What is lambda in Python?
  15. lambda returning tuple
  16. map returning tuples
  17. lambda with two parameters
  18. map for more than one iterable
  19. map on uneven lists
  20. replace None (for Python 2)
  21. map on uneven lists - fixed (for Python 2)
  22. map mixed iterators
  23. map fetch value from dictionary
  24. Exercise: string to length
  25. Exercise: row to length
  26. Exercise: compare rows
  27. Solution: string to length
  28. Solution: row to length
  29. Solution: compare rows
  30. filter in a loop
  31. filter
  32. filter with lambda
  33. filter - map example
  34. filter - map in one expression
  35. Get indices of values
  36. reduce
  37. reduce empty list
  38. reduce with default
  39. reduce list of dictionaries
  40. zip
  41. Combining two lists using zip
  42. Creating dictionary from two lists using zip
  43. all, any
  44. Compare elements of list with scalar
  45. List comprehension - double
  46. List comprehension - simple expression
  47. List generator
  48. List comprehension
  49. Dict comprehension
  50. Lookup table with lambda
  51. Read lines without newlines
  52. Read key-value pairs
  53. Create index-to-value mapping in a dictionary based on a list of values
  54. Exercise: min, max, factorial
  55. Exercise: Prime numbers
  56. Exercise: Many validator functions
  57. Exercise: Calculator using lookup table
  58. Exercise: parse file
  59. Solution: min, max, factorial
  60. Solution: Prime numbers
  61. Solution: Many validator functions
  62. Solution: Calculator using lookup table
  63. map with condtion
  64. map with lambda
  65. map with lambda with condition
  66. List comprehension - complex
  67. Change list before iteration over map object
  68. Replace list before iteration over map object