Week 2: Stumbling on Holy Wars

This weeks introduction to the Holy Wars assignment, as well as week 2’s start into using python properly has led me to realise that I’ve stumbled into a number of Holy wars — namely IDE vs Text editor, tabs vs spaces, and lambda.

The one I’m going to focus on is lambda, mainly because it was so good for getting the job done in one line. That is:

map(lambda x: Result_one if x >/</= 4 else result_two: range(0, 10)

Simple, elegant, and can’t wait to see what someone says about it being bad.

Like what you read? Give Matt Walden a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.