students if student.average >= 85 ] • coordinates = [ (x + 5, y - 2) for x in range(1, 11) for y in range(1, 6) ] coordinates = [ ] for x in range(1, 11): for y in range(1, 6): coordinates.append( (x + 5, y – 2) )
f(x, y, z = 90) • Arbitrary sequence: f(*args) • Keyword params: f(**kwargs) • They can all be introduced, in this order: f(x, y, z = 90, *args, **kwargs)
self is the first parameter of instance methods, and it's passed as an implicit argument! It refers to the current instance, just like this in Java/C#.