/playground

Personal Python Playground

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

playground

Personal Python playground


  • Factory Pattern: Factory Method design pattern example
  • Inheritance: A hierarchy of classes for iterating numeric progressions.
  • Letter Changes: Replace every letter in the string with the letter following it in the alphabet (ie. c becomes d, z becomes a). Then capitalize every vowel in this new string (a, e, i, o, u) and finally return this modified string.
  • Thread Pool: Suppose you want do download 1000s of documents from the internet, but only have resources for downloading 50 at a time. The solution is to utilize is a thread pool, spawning a fixed number of threads to download all the URLs from a queue, 50 at a time.
  • Fibonacci: Fibonacci Examples