This is O.R.Senthil Kumaran's blogspot on programming and technical things. The title is a line from "Zen of Python".
Be bold in editing...

Wikipedia suggests a editing guideline,i.e
"Be bold in updating pages". I guess, that should one guiding principle to follow if we have to become an active person in any community. The second point ofcourse states 'don't be reckless.
Whitespace programming language
Stumbled upon this this link of Whitespace programming language. Its really funny!.
enumerate function in python; pyTip
When looping through a sequence, the position index and corresponding value can be retrieved at the same time using the enumerate() function.
>>> for i, v in enumerate(['tic', 'tac', 'toe']):
... print i, v
...
0 tic
1 tac
2 toe
>>> for i, v in enumerate(['tic', 'tac', 'toe']):
... print i, v
...
0 tic
1 tac
2 toe
pydoc humor
Attributes may be read-only or writable. In the latter case, assignment to attributes is possible. Module attributes are writable: you can write "modname.the_answer = 42". Writable attributes may also be deleted with the del statement. For example, "del modname.the_answer" will remove the attribute the_answer from the object named by modname.
Python QnA
Q) How do you reverse a string in python?
A) str = "Senthil"
str[-1::-1]
Using the slicing operator which takes three arguments.
A) str = "Senthil"
str[-1::-1]
Using the slicing operator which takes three arguments.
Trip on the funny boat
Trip on the funny boat is an excellent game written in python. Stumbled upon this at www.pygame.org. You would need Python,Pygame and Numeric to run this game. Its really enjoyable and it brought a smile in my face when I played it for the first time. :) This was my first trial with pygame as well.
Kudoes to the developers of this wonderful game.
Kudoes to the developers of this wonderful game.
Looking for an ICS Server download
We are conducting a Chess Tournament in our Office. We cannot make a TCP connection to the any ICS ( Internet Chess Server). I have decided to run a Chess Server Locally so that people using Xboard can connect to it.
I need links to where I can download good Internet Chess Software Server.
chessd program at sf.net had problems compiling for me.
Any good pointers for me to look?
I need links to where I can download good Internet Chess Software Server.
chessd program at sf.net had problems compiling for me.
Any good pointers for me to look?
Subscribe to:
Posts (Atom)