Where can i find good practice python problems with solutions?
I'm looking for detailed practice problems that are designed with a coding purpose in mind.
Where can i find good practice python problems with solutions?
I'm looking for detailed practice problems that are designed with a coding purpose in mind.
Try the Google Code Jam. They have solutions from participants for past contests, some of which are in Python. Take into account that as in any programming competition, the goal there isn't to learn Python - it's to get the job done as quickly as possible. So you may not learn the cleanest programming style, but you will see how smart people use the language to solve complex problems in an efficient manner.
Python Challenge is a great place for beginners to learn Python in an interesting way.
EDIT - To answer the comments below, yes, there are solutions (and hints too) often in multiple languages meaning you can really use whatever language you like (though primary support is obviously in Python)
A good set of problems can be found at Project Euler (though not specifically for Python). You get to the solution only after you've actually solved the problem. But even then, you can usually learn a lot from the other solution(s) - see how it can be done in other languages, and (more importantly) how it can be done even more elegantly.
It all depends on what you understand under "problem", "coding" and "practice". For example, my first guess is you might be interested in looking up whatever university courses on algorithms using Python that you can google out. Here's one arbitrary link.
It's also worth looking at classic textbooks, those have lots of examples.
Finally, try looking at the tutorials from certain specialized packages, such as Scipy, Turbogears, PyGame, etc.
If that's not enough, you can just go read the source code of some existing open source software. That might also help.
CodingBat (previously JavaBat) now has Python thanks to Google. Some problems have hints and solutions. Your answer can be tested automatically for correctness.