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

12 out of 12 users completed this Bite.
Will you be Pythonista #13 to crack this Bite?
Resolution time: ~53 min. (avg. submissions of 5-240 min.)

We use Python 3.8