PDA

View Full Version : Best collection of python example code I have found



saeed kouchaki
July 13th, 2011, 06:11 AM
thanks for,,it helped me much..

Queue29
July 13th, 2011, 07:24 AM
There is nothing better than Rosetta Code for code examples. For any language.

http://rosettacode.org/wiki/Python

Dhiraj Thakur(Invincible)
July 13th, 2011, 06:33 PM
Although no example codes here...but if you wanna practice python i recommend www.pyscools.com (http://www.pyscools.com)
they have gud questions that strengthen your grasp of python

TwoEars
July 13th, 2011, 06:50 PM
Although no example codes here...but if you wanna practice python i recommend www.pyscools.com (http://www.pyscools.com)
they have gud questions that strengthen your grasp of python

I have completed every question on there, however I can't say that I recommend it completely. Most questions are okay, but a few are so badly written and the correct "answer" is not always correct according to the question!
Also note the challenges aren't exactly brilliant - they're just random questions of no connection whatsoever put together. There's also no correlating hardness, nor are the rules stated anywhere before starting.


Anyway, a similar website is checkio (suffers from the same problems as pyschools - AFAIK, they're both written by people whose first language isn't English)

I find the best code resources for conventions and examples are the PEPs and the mailing lists.