Functional programming is a style (or "paradigm" if you're pretentious) of programming where we compose functions instead of mutating state (updating the value of variables).
Example of imperative code:
car = create_car()
car.add_gas(10)
car.clean_windows()
Example of functional code:
return clean_windows(add_gas(create_car()))
The important distinction is that in the functional example, we never change the value of the car variable, we just compose functions that return new values, with the outermost function, clean_windows in this case, returning the final result.
In this course, we're working on "Doc2Doc", a command line tool for converting documents from one format to another. If you're familiar with Pandoc, the idea is similar.
Complete the stylize_title function. It should take a single string as input, and return a single string as output. The returned string should have both the title centered and a border added.
center_title and add_border.