Second project Question # 3/8

Screen Link: <!-- Learn data science with Python and R projects>

My Code:

Replace this line with your code
Python

ask_post = []
show_posts = []
other_posts = []

for row in hn:
    title = row[1]
    if title.lower().startswith('ask hn'):
        ask_posts.append(row)
    elif title.lower().startswith('show hn'):
        show_posts.append(row)
    else:
        other_posts.append(row)
ap = len(ask_posts)
sp = len(show_posts)
op = len(other_posts)

print(ap)
print(sp)
print(op)``

What I expected to happen:
Expected the numbers to match

What actually happened: 
numbers don't match

Replace this line with the output/error
0
0
5


<!--Enter other details below: -->

Running your code in my project ran as expected (minus one error which I think was just a typo in your code) and produced the expected values.

So, that means that the issue is not necessarily with the code above, but with any other code, you might have run before running the above.

What all did you run before running the above code?