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 […]
Tag: education
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 […]
Global Health and Safety Stats
In this post, we’re glancing at some key health and safety issues affecting human populations worldwide.From chronic illnesses to risks to lives posed by various human activities such as violence and traffic death, I’m presenting some easy-to-understand visuals and comparisons across most affected countries to selected developed and developing nations. The data have been sourced […]
Creating a half-circle and a rainbow chart
In this blog, I demonstrate creating a half-circle, and then a rainbow chart in Excel using data. The charts are dynamic and fully customizable. Other than just being pretty, they have plenty of uses (e.g. for seating arrangements in an arena, for showing counts of seats occupied by different parties, and much more. Besides, they’re […]
Interesting Facts at Ocean Depths
Exploring the depths of the ocean reveals a fascinating world teeming with diverse marine life and remarkable human achievements and adventures.In this chart, we look at some of the usual depths inhabited by various marine creatures, from the shallow waters to the abyssal plains and down to the deepest seabed on Earth.Additionally, I highlight some […]
Creating an Analog Clock in Excel
Welcome back! In this post, I demonstrate creating an analog clock as a chart in Excel that’s completely data-driven, and even real-time. The clock, created as a scatter plot in Excel is dynamic, scalable, accurate, and highly customizable. You will discover the way to generate such a chart that updates the clock visual according to […]
Circle and Star charts in Python
In this post, I share the code on how to create a circle and a star chart using the very flexible XY scatter chart type and the very versatile matplotlib Python library. The number of lines of code needed are very small but the key here is to understand the parametric equations needed to generate […]
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 […]
Search Algorithms and Path Navigation
In this post, I introduce two fundamental search algorithms used to traverse or search through graphs or tree data structures: breadth-first search (BFS), and depth-first search (DFS). I also present an overview of a path/search navigation scripts for both algorithms and compare their metrics. This post builds on my earlier post about stack and queue […]