Solve This (? + ? + ?=30)
If 1111=R, 2222=T, 3333=E, 4444=N Then 5555=?
Guess the Hindi Muhawara from the following whatsapp Emoticons?
Sweet, Medicine, Film, Girl, City, Car, Place, Doggy all are name same, guess which word it is?
Guess me who am I, I am the first on earth, the second in heaven...
A girl is blind, deaf, dumb and uneducated too. A boy loves her. How would he propose without touching her?
Four Question, One Answer: One River Name, One Flower Name, One Film Name, One Actress Name?
What is the India’s rank in the 2017 Digital Evolution Index (DEI)?
Who was named as the Wisden Cricketer of the Year 1980?
The bollywood movie Dil Hai Ki Manta Nahin was inspired from which hollywood film?
Starting on any day/date, I would like to create a one year list, by week (start date could be any day of week). Having a numerical week index in front of date, ie 1-52, would be a bonus.
ie, 1. 6/4/2013
3. 6/18/2013....etc to # 52.
And to save that result to a file. Moving from 2.7 to 3.3
from datetime import date, timedelta
the_date = date(year=2013, month=6, day=4)
print "%d. %s" % (1, the_date)
for n in range(2, 53):
the_date = the_date + timedelta(days=7)
print "%d. %s" % (n, the_date)
start = datetime.date.today()
for i in range(53):
dt = start + datetime.timedelta(days=7*i)
result = "%i. %s" % (
I'm a relative newbie to python, and this NG, but it's certainly growing on me.
One thing I'm missing is the increment/decrement operator from C, ie x++, and its ilk. Likewise x += y.
Is there any way of doing this in Python?
I have python-django installed on ubuntu installed on top of virtual Box. Also I have apache2 installed in the same way. When i visit the page hoisted by Apache2 from my Windows Host machine it worked.
But When i am doing the same for Django pages it's not opening up in Web browser from Host machine.
In the virtual box I am using bridged adapter and Eth0.
Please Help me to sort out this problem
For testing purposes I want my code to raise a socket "connection reset by peer" error, so that I can test how I handle it, but I am not sure how to raise the error.
Forgot Your Password?
2017 © Queryhome