Functional programming

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