Change the limit from 2 to 1. Which document disappears?
ranked = ["faq", "guide", "notes"]
print(ranked[:2]) Line notes
- The documents are already in search order.
- Print the first two documents in the list.
Question 2 of 5
A service name and its setting ended up in different passages. Retrieval found the number but lost its meaning.
A rental policy says “Bikes can be returned until 21:00.” The next line reads “On Sundays, until 18:00.” If the lines are stored separately, a Sunday question might retrieve only the general rule. Keep both lines in one passage and read it again as someone planning a Sunday return.
WHERE TO START
If a rule and its exception fall into separate passages, which will the reader see?
Change the limit from 2 to 1. Which document disappears?
ranked = ["faq", "guide", "notes"]
print(ranked[:2])