avatar Bite 312. Scoring objects

In this Bite you are going to score objects:

Object type Points
builtin 1
keyword 2
module 3


Complete score_objects that receives a list of objects and a scores dictionary (as shown above and provided in the template code).

For each str in the objects list passed in, see if it's any of a builtin, a keyword or a module and add the appropriate score to the total int 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!

Login and get coding
go back Intermediate level
Bitecoin 3X

38 out of 41 users completed this Bite.
Will you be Pythonista #39 to crack this Bite?
Resolution time: ~85 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 9.0 on a 1-10 difficulty scale.
» Up for a challenge? 💪

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help