Wednesday, January 8, 2014

How it works (how to submit solutions)

Problems

Every week on Wednesday evening (Jerusalem time; early afternoon EST; late morning PST), I will post a small tidbit of Python 3 (an explanation, a library, a sample function) and pose an exercise that relates to the explanation / sample written in the post. The exercise should take no more than 30 minutes to solve and test. I will also try to include links to external websites that explain concepts in a simple way. Because I am not yet sure about the audience of the blog, I suspect that the first few weeks might take some calibration. The more you tell me and give feedback, the better it will be!

If you want to be reminded every week that a new exercise has been posted, enter your email in the email bar to the right.

Solutions

Your solution

At the bottom of every post, there will be an embedded Google Form where you will submit your solutions. The way to submit solutions will be through an anonymous Gist. This is like pastebin, except I can automate some scripts to make processing solutions easier for me. 

All you need to do is go to http://gist.github.com, paste your code into the text box (not the comment box), and Create a Public Gist. You can even do this without a Github account! The link that is created with your code is the submission link that you will put into the form at the bottom of every exercise post. That's it! (Note: if you want to make a Github account and keep copies of your code for yourself as gists, feel free to do that as well). 

My solution

I will post a few submitted solutions and comment on them, so you can see examples of other people's solutions. In my comments I will refer to general coding style and methodology as well as Python coding conventions. In the event that my solution differs significantly from posted solutions, I will post my solution as well. You can check your submitted solutions against the posted solutions to see how you did.

2 comments:

  1. https://gist.github.com/anonymous/11b8b45bc675b56986f2#file-gistfile1-txt

    ReplyDelete
  2. https://gist.github.com/anonymous/900cd20c2d05ecc1a273#file-gistfile1-txt <- improved version

    ReplyDelete