Login and get codingIn this Bite you are going to score objects:
Object type Points builtin 1 keyword 2 module 3
Completescore_objects
that receives alist
of objects and ascores
dictionary (as shown above and provided in the template code).For each
str
in theobjects
list passed in, see if it's any of a builtin, a keyword or a module and add the appropriate score to the totalint
you have to return from the function.These checks can all be done with modules in the Standard Library, nothing external is needed.
Good luck and keep calm and code in Python!
38 out of 41 users completed this Bite.
Will you be the 39th person to crack this Bite?
Resolution time: ~85 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 9.0 on a 1-10 difficulty scale.
» Up for a challenge? 💪