This is the P2PU Archive. If you want the current site, go to www.p2pu.org!

Beginning Python Webservices

My recent threads

You haven't posted any discussions yet.

Recently updated threads

Coding Helpers

Go back to: General discussion

I've found the following 2 resources to be great at helping me with Python:

Codingbat
Here you can do practice problems of varying degrees, most of the problems can show you a solution if you get stuck.

Facebook Puzzles
Don't let the fact that it's facebook fool you. These problems aren't as easy as the ones on codingbat and they don't really offer solutions either but python is one of the accepted languages. I'll post a follow up tomorrow of my solution to the Hoppity Hop! beginning puzzle.

Happy Coding!!!

 

Constantine's picture
Constantine
Wed, 2010-09-29 16:33

Thanks Caley!
edit: WOW! I just checked out the site and it tests and compiles your output right there? Pretty sweet.

Caley Woods's picture
Caley Woods
Wed, 2010-09-29 17:59

Said i'd post my solution to the beginning hoppity hop puzzle, here it is. You can read the requirements here: http://www.facebook.com/careers/puzzles.php?puzzle_id=7

Solution: http://dfnkt.pastebin.com/G6v2h4up

I've modified it just a little so that you can have multiple numbers in your input file. Changing it back would be trivial.

I've tested this with python 2.7 using a file on a windows machine (C:\>python fbpuzzle.py C:\input.txt) and it works well.