One of the relatively newer tools that came online for the general public designed to transform ideas into AI-generated videos is Hailuo AI. In this post, I’ll share a couple of examples of its outputs based on my paintings, drawings, digital creations, and text prompts. Hailuo’s Conch Video is a product of Minimax, a China-based […]
Tag: fun
Python teaser/puzzle 45588-1346
This is a quick Python coding puzzle or brain teaser for educational and/or entertainment purposes. The challenge is quite simple but is useful for learning or refreshing your coding skills while exercising some logical thinking. Objective Write a Python function that returns the top n (highest) values from a list of numbers. For example, given […]
Python teaser/puzzle 45588-1338
This is a quick Python coding puzzle or brain teaser for educational and/or entertainment purposes. The challenge is quite simple but is useful for learning or refreshing your coding skills while exercising some logical thinking. Objective Write a function that returns the maximum difference between any two elements from a list of numbers. If the […]
Python teaser/puzzle 45588-1312
This is a quick Python coding puzzle or brain teaser for educational and/or entertainment purposes. The challenge is quite simple but is useful for learning or refreshing your coding skills while exercising some logical thinking. Objective Write a Python function that takes a list of integers as input and returns the 2 numbers that add […]
Path Navigation Gamification
In an earlier post, I shared a couple of fundamental search and navigation algorithms. You can read it here. In this blog post, I’ll share a fun implementation, a gamification using one of the algorithms. The premise is simple: We have a seeker (depicted by a bandit) whose objective is to find a target (a […]
Pangram Verifier (Python)
Objective Write a script that takes a user-input and checks if it’s a pangram. A pangram is a sentence/phrase/string that contains all letters of the alphabet (in this case, English) at least once. However, technically, a pangram doesn’t necessarily have to be a grammatically correct sentence. The goal of a pangram is to include every […]
Creating a Pangram Phrase with Python
Introduction A pangram is a sentence that contains every letter of the alphabet at least once. The most famous example in English is “The quick brown fox jumps over the lazy dog.” Pangrams are not only fun to create but also useful in various applications, such as testing fonts and keyboards. Technically, a pangram doesn’t […]
Generating quick fractals in Turtle
In this post, I share a quick way to generate impressive fractal images using Python and Turtle library. Both real-time demo and code provided. I’m using all official Seahawks NFL team colors in drawing three distinct circles, each in a loop with a certain radius. The radius of each circle is pseudo-randomly chosen from a […]
Creative and Fun Uses of Hashing (Part 2)
In an earlier post, I demonstrated a fun and creative use of hashing to create unique visual signatures based on any input. In this post, I’ll create add another twist to it. Specifically, I’ll show another creative use of hashing where we can input any city name and get it’s real-time weather information, and based […]
Creative and Fun Uses of Hashing (Part 1)
In this post, I’ll demonstrate a fun and creative use of hashing. Before I explain briefly what is hashing for those unfamiliar, let me just give you an overview of my original intent of this exercise. We know that hash functions will give us unique values for a given input (letters, numbers, binaries), so I […]