Tag: implementation
I guess, quite often, you see the usage of __name__ in Python. Yes, it is a keyword (attribute) associate to a module. It can be used to tell if …
Bogosort is a purely random sorting algorithm. It is inefficient because it is probablistic in nature. The algorithm is simple. Randoming shuffling the array until they are in order. …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/192/A The given input to this problem can be held by a four-byte integer (32-bit). It is to search for two numbers and such …
There are many available packages that you can use in creating of windows/dialogs in Python script. For example, The most important can be found below: Tkinter: Tkinter is the …
I’ve been learning python for some time and would like note the nice language aspects of Python programming syntax. 1. Multiple statements on a single line. In python, normally, …