Basic thinks I love in Python solution in Clear category for I love Python! by
Let's explain why do we love Python.
a,b = [1, 2]
a,b = b,a
someList = [1,5,2,3,4,5,6,6]
unique = list(set(someList))
sortedByABS = sorted(someList, key=lambda x: abs(x))
evens = [x for x in someList if x%2==0]
modulo = [x%2 for x in someList]
return "I love Python!"
if __name__ == '__main__':
#These "asserts" using only for self-checking and not necessary for auto-testing
assert i_love_python() == "I love Python!"
Dec. 11, 2015