Using values from a settings module

Fill in the blanks · Basic · §12.4 Making your own module

The number of posts to show in the feed is set in feedconfig.py in the same folder. Fill in the blanks so that the code imports this module and prints only the first LIMIT titles. Grading also runs the code with different values in feedconfig.py.

Code with blanks

import ____

posts = ["Autumn walk", "Cat photos", "Cafe picks", "Night view", "Reading log"]
for title in ____:
    print(feedconfig.MARK, title)

File feedconfig.py

LIMIT = 3
MARK = "*"

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.