Calculate the square of a number and visualize powers using Python in WebAssembly