Posts

Showing posts with the label the creatricks

Convert your Python file to executable windows file

Image
Hi mates , In this post we are going to learn how to convert your python files(apps,games,animations etc.) to an executable windows file, so that you can distribute it on web or to your friend and family without asking them to separately download python or any library for python. There are many methods to do this including Py2exe , cx_Freeze , Pyinstaller  and some other. they all do pretty much the same thing they freeze(or compile) your python file into executable file(or a single package). We are going to use Pyinstaller , because it is very easy to use ,comes with different feature, it is compatible with 3rd party packages and also supports most of the python libraries(including PyQt, Django and matplotlib). I am going to use the python file made in my last post on Sorting algorithm animation using Pygame  . I made a little change so that animation doesn't stop after sorting is completed ,instead it starts again with new random array.You can download the file ...

Animation of Sorting Algorithms

There are many different types of sorting algorithms and each one has a different pattern of working(of course that's why they are different 😇 )  with array or maybe some other data structure like-linked list etc. You can find many different tutorials about how they work within computers all the coding stuffs. But did you ever find yourself wondering how cool it would be to realize how they work with the random distribution of those numbers. How good it would make you understand how they work internally if you can see how numbers get rearranged in each sorting algorithm. Don't worry you can do that easily, just search by words like 'searching algo animated' or 'animation of different searching algorithms' etc. You will find there are many programmers before you who had the same feeling to watch it happen by their own eyes . So they came up with different animations using different platforms. You can find many kinds of videos(animation) each one...