Reporting weather by reading off the predictions is obviously a very different skill than creating the code and models that actually predicts the weather! Not just forecasting for the next 5 days, but actually PREDICTING for any number of period in the future! Is that even possible? Yes, it is albeit there are myriad of […]
Category: Coding
Creating music and teaching coding
Have you heard of Earsketch? It’s an amazing, fun way to create music while learning, practicing, teaching coding! Yes, music and coding all in one with its online, free platform (for students)…you just need a browser. It supports Python and Javascript coding in their online editor and you can compile and run the code on […]
Machine Learning in Python (Univariate Linear Regression)
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, […]
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 […]