99 bottles of beer: Difference between revisions

Fixed the mess, don't know why that strange image link was created
(→‎Flexible procedural version: an overkill.... :-D)
(Fixed the mess, don't know why that strange image link was created)
Line 8,136:
</pre>
 
[[File:[[File:Example.jpg]]]]===Flexible, OOP, multiprocessing version (exercise of style)===
{{Works with|Python|3.3+}}
Inspired by the [[99_Bottles_of_Beer#Python_3.2C_functional.2C_pythonic_version|Functional Pythonic Version]]
 
<lang python>"""
Excercise of style. An overkill for the task :-D
 
1. OOP, with abstract class and implementation with much common magic methods
Line 8,152:
f. the template used, for foreign languages
3. strofas of the song are created with multiprocessing
4. when you can launch as a script, you can specify an optional parameter for
the number of initial items
"""
 
63

edits