The first two and the last two
Fill in the blanks · Medium · §3.2 The same rules
The list of posts is long, so the preview shows only the first two and the last two. Fill in the two blanks. There are always at least four posts, and grading runs the code again with different lists.
Code with blanks
posts = ["notice", "cafe", "trip", "food", "gym", "book"]
preview = ____ + ____
print(preview)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.