News

When you use a for-loop, list comprehension or anything else that iterates over an object, in the background the __next__ method is being called on an iterator. Ok, so let’s make an example.
Note that we’ve already used Python’s list comprehension in the broken example above, to invoke the list. It’s the expression in the square brackets [], and is basically a short form for loops.
So I'm not a programmer, I took a few classes ages ago, but there are some Python scripts in use on the servers here so I figured I'd start. What I'm trying to do is call an API and get a chunk of ...