Guided Project: Exploring Hacker News Posts step 3 of 8

ask_posts = []
show_posts = []
other_posts = []
for row in hn:
    title = row[1]
    if "ask hn" in title.lower():
        ask_posts.append[title]
    elif "show hn" in title.lower():
        show_posts.append[title]
    else:
        other_posts.append[title]
TypeErrorTraceback (most recent call last)
<ipython-input-5-6a4fb66e931d> in <module>()
      9         show_posts.append[title]
     10     else:
---> 11         other_posts.append[title]

TypeError: 'builtin_function_or_method' object is not subscriptable

i am not even sure what i could have done wrong.

1 Like

in the off chance someone else has this problem, i’ll leave it up.

use “list_name.append(title)”
parentheses, not brackets.

2 Likes