In this post, I share a method to utilize Machine Learning using Python. I have collected some data from CDC site about birth rate in the USA over several years. What I’d like to show you is how we can predict birth rate for a year that is NOT present in the dataset. For example, […]
Category: Coding
Make a computer guess your word – Python
You’ve undoutedly played games like hangman or seen TV games such as Wheel of Fortune where you’re supposed to guess a word by only given the number of letters (or their placeholders, blank tiles) in a given number of tries. You may have also written similar games yourself. In this post however, I’m going to […]
Share variables across different modules – Python
There are several ways we can share a variable’s value or multiple variables’ values set across different modules or code files. One of the easiest and efficient way is taking advantage of config module in Python. In this post, I demonstrate exactly how it’s done. Imagine the scenario where you have a python module that […]
Words to numbers challenge – Python
In this blog I share techniques on how to convert a dataset containing words into actual numbers (integer or float) save the output with numbers to an external CSV/XLSX data file. If you’re wondering why would one ever need this? Here’s a scenario: A list of movies and their corresponding revenues were read into a […]
General Tree Data Structure – Python
In this post, I’ll demonstrate implementation of what’s known as a General Tree (not binary tree…that’ll be discussed soon in a different post)…it’s a unique data structure that Queue or Stacks cannot easily handle or at all. The key characteristic of this DS is that it allows for hierarchical data representation and relationships…think, taxonomy. Real-world […]
Queue and Stack Data Structures — Explained
Hi visitors! This post is about explaining the very essential data structures such as Queue and Stacks in a simple way, and provide you with some animations to help. Then I’ll explain how you can implement either data structures in a real-world situation using Python (or any other language, once you understand these fundamentals). I […]
CPU-generated structural art – CONSTABUILD
This program I dub ‘Constabuild’ is a cross-platform Python app I wrote that generates ‘random’ shapes in ‘random’ colors, in ‘random’ starting positions, for ‘random’ repetition of the selelected shape and color…creating unique patterns/art every time it’s executed. While the app is 100% self-running, there are also some fun commands user can give at run-time […]
Text-to-Speech (TTS) and Pandas (POTUS data)
In this post, I introduce you to my Python 3.x program that reads an external data file containing all president names of the USA to-date (2022), and that allows users to enter a query to and hear the names of presidents as the result. The query can be a number such as a first N […]
True text transformation without using any special libraries (Python)
In this post, I’ll share a real example (and an application that you can download and use for your personal use) on how to turn text into fun representation such as: flipped, reversed, substituted with other characters using Python. The output is not an image, but still real text that are not easily accessible from […]
Network graphs explained with scenarios (Python) – Part 2
This is Part 2 of the series “Network graphs explained with scenarios“. Please read Part 1 first for proper continuity. A few of the scenarios I cover in this blog series here: Project scheduling example – Shows how to compute critical path on a network of related tasks. Covered in Part 1.Routing example – Shows […]