CodesA collection of my publicly available research & outreach codes.
This section is currently under construction while I’m busy cleaning up my codes.
Collection of Python Exercises
A collection of 100+ Python exercises (including solutions) covering: Basic operations, variables, output and input, string operators, math operators, libraries, logical operators, IF and ELSE statements, lists, loops, and file operations.
The exercises can be used in programming courses and for independent study. They come in three levels of difficult (easy, medium, hard) and are suitable for students with no or very limited initial knowledge of programming.
The workbook and solutions can be cloned/downloaded from my PythonExercises repository on GitHub.
Simple Sorting Algorithm
A Jupyter Notebook to visualize a simple sorting algorithm for one of my coding courses.
The Jupyter Notebook can be cloned/downloaded from my SimpleSortingAlgorithm repository on GitHub.
Estimating Pi with a Monte Carlo Algorithm
A Jupyter Notebook that uses a Monte Carlo Algorithm to determine the value of Pi.
The Jupyter Notebook can be cloned/downloaded from my MonteCarloForPi repository on GitHub.
MandelPy is a Mandelbrot visualization tool for Linux, Windows, and Macs based on Python3. It can be executed as a Jupyter Notebook or inside a Widget with the option to change the computational grid, the resolution, the number of iterations, the threshold, and the colour map. Generated Mandelbrot plots can be saved as png files if the corresponding option is selected.
Some MandelPy plots are available in my gallery.
The Jupyter Notebook, the GUI, and the User Manual can be cloned/downloaded from my MandelPy repository on GitHub.
Determining the Maximum of a Function using a Basic Random Walker
A Jupyter Notebook that determines the maximum of a function (1D or 2D) by using a basic random walker.
The Jupyter Notebook can be cloned/downloaded from my RandomWalkerForMaximum repository on GitHub.