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
Art Coding Education STEM

Abstract Art with Code (Art<->Tech). Volume II

VOLUME 2 If arts and tech had a baby, may it’d look like me 🙂 Anyway, I love mixing the two, interconnecting, and interpolating them…because I’m always curious. Results can be incredibly satisfying or surprising. These are not the best of my work in any form in coding, but wanted to share these short programs […]

Read More
Art Coding Education STEM

Abstract Art with Code (Art<->Tech). Volume I

VOLUME 1 If arts and tech had a baby, may it’d look like me 🙂 Anyway, I love mixing the two, interconnecting, and interpolating them…because I’m always curious. Results can be incredibly satisfying or surprising. These are not the best of my work in any form in coding, but wanted to share these short programs […]

Read More
Coding STEM Uncategorized

Text-to-speech, Interactive Shopping List (in Scratch)

Welcome! Today, we’re going to try a program with a little more complexity and twists in Scratch.  In this program, I demonstrate the following tips/tricks: How to use a List control real-time How to get inputs from user and take action accordingly How to convert Text-to-speech How to read variables real-time from calculations and let […]

Read More
Back To Top