Skip to content

2020

#30: List Comprehension

If you want to create a list from the values of another list, you most likely will write a for loop. That works and is how you would solve this exercise in any other language. However, there is a more pythonic way to do it called list comprehension.

#28: Python Podcasts

I find podcasts an efficient way to learn more about a programming language. Not so much about the syntax or writing code itself, but about the tools, the ideas and the community. In todays post I give you a list of 5 podcasts I find interesting for Python developers.

#27: Reading Exif Metadata From Images

While sorting my images I came up with a little idea: Can I find all images I took with a specific lens? As it turns out, Python offers a wide range of packages to get this information from the Exif metadata. This post is part of my journey to learn Python. You can find the other parts of this series here.

#26: The dir() Function

I constantly run into the problem that I cannot remember what methods exist on an object. If you have the same problem in the interactive prompt, then the built-in function dir() can help you.

#24: Multiple Return Values?

In a talk at NDC I saw an interesting feature of Python: A method returned not one but two values, a list of parsed entries and a list of entries with errors. This powerful feature is called unpacking of a tuple and can make your code a lot simpler.

#22: Lambda Functions

Sometimes we need a callable object that we can use as an argument to a function. While we could create a function for that purpose, there is another way that needs less typing.