Monday, October 06, 2025
Coding Education STEM

“Rabid Racoon” tracking (Python, using our own class)- Part 1

Just like most high-level programming languages, Python also supports the idea of classes. Once the class(es) is/are created they can be inside the main python file or separated (in most usage scenarios), along with it methods. For Python-specific syntax, please refer to its documentation online or offline (python.org is a good start), but you should […]

Read More
Coding Education

How to change keyboard strokes (C/C++) Part 1/2

In the following simple C program, I’ll demonstrate how to capture keystrokes and turn them into something completely different…other than what the key labels read. This is the basic idea behind changing keyboards from English to another language; take the input from the key, read its character code (ordinal value) from the operating system, and […]

Read More
Coding Education STEM

Letters to Patterns (what does your name look like?)

Letters, in whatever language/scripts are really glyphs aren’t they? They’re a visual representation of a letter that’s supposed to sound (or not sound) like something that we repeated until we memorized it since birth. All good 🙂 I was thinking of different ways to represent letters…you know, just for fun! Yes, I’m weird like that. […]

Read More
Coding Education STEM

Adding sound to Python code

Python isn’t necessarily for multimedia programming, so only recently I looked up ways to add audio in a Python script. Turns out there are several ways to do that. They’re all really simple. Methods to add sound: 1. import winsound fname = “soundfile.wav” winsound.PlaySound(fname, winsound.SND_FILENAME) 2. import pygame pygame.init() s = pygame.mixer.Sound(“soundfile.wav”) # Start playback […]

Read More
Coding Education STEM

Program to care for a pet (Scratch)

Hello, and welcome back. Today, A fun program to introduce kids/beginners to understand logic and loops while taking care of a pet fish 🙂 Easy to code and easy to play. Code is commented with explanation. Check it out here: https://scratch.mit.edu/projects/282372671/ Enjoy! Challenge: I intentionally kept the core code simple and uncomplicated. However, if you grasp the […]

Read More
Back To Top