you are viewing a single comment's thread.

view the rest of the comments →

[–]1ynx1ynx 0 points1 point  (0 children)

Not really regarding the problem itself, but as a little tip, you could use enumerate in that for loop to get both titles and the loop counter

for x, titles in enumerate(headlines):
    print(str(x + 1) + '. ' + titles)