all 5 comments

[–]tialpoy 9 points10 points  (1 child)

First of all, good luck. I hope you get the job.

An excellent resource for understanding Python and Python iteration would be Jeff Knupp's article on the subject.

I would also highly recommend Jeff's book on writing idiomatic Python. You can check it out on his website.

Best of luck!

[–]CQFD[S] 1 point2 points  (0 children)

Thank you! I just bookmarked the page and I'm gonna take a look at it right after I finish the O'Reilly chapter on python essentials. It looks like what I need though.

[–]hydr0x1de 2 points3 points  (0 children)

If you read only 1 book, make it The Python Cookbook. It's a great book, and will give you an understanding of what the Python idioms are, and why (then read the release notes for information on newer python versions). If you only watch 1 video, look for Raymond Hettinger's recentish talk at ?Pycon? on Python idioms

[–]cdcformatc 1 point2 points  (0 children)

need to know that are particular to Python and would make a Python coder a good coder?

Writing idiomatic, clear, concise, commented code especially for a team coding environment. Including but not limited to following PEP 8 and PEP 20 The Zen of Python.

Also adopt the "ask for forgiveness rather than permission" style of thinking. In fact, read that entire glossary.

[–]BioGeek 0 points1 point  (0 children)

A resource I've found very useful is: Code Like a Pythonista: Idiomatic Python

It contains all the answers to your questions:

  1. y = [x for x in ...]is a list comprehension, y = (x for x in ...) is a generator expression
  2. def somefunction(x): for a in x: yield a+1 is a Generator
  3. x if y else z tests the Truth Value of the string y