Basic - 2
1. @classmethod, @staticmethod
@classmethod, @staticmethod
@objectmethod
: 1st params = self@classmethod
: 1st params = cls@staticmethod
: no params required
2. Lambda
simple
usage
3. Python folders
folders = package
4. Array methods
map
= modify each element, and return array
filter
= return array of elements that are true
find
= filter & first
reduce
= accumulate array, and return a single value
Last updated
Was this helpful?