Currently I am starting to solve online programming problems using python. Spoj support python as well as other's language. Here I post some of my solved problems code of Spoj site, so that you can find how to solve programming problems in python. Lets have fun ....
Life, the Universe, and Everything : https://www.spoj.pl/problems/TEST/
All source code available on github
# python 2.7 num=input() while num!=42: print num num=input()