Calculate average ask comment

HI all,
Please see below code and return error is invalid literal for int() with base 10: ‘h’

total_ask_comments=0
for row in ask_posts:
total_ask_comments+=int(row[4])

I think it is a logical problem. In the last step, we put titles start with lowercase ‘show hn’ or ‘ask hn’ to the ask_posts list and show posts list only. We did not put the whole row to the list… i try to do print(ask_posts), I can only see all titles only instead of the wholw row from hn. It is why I cant change to number at this step…is it correct?

I worked it out! thank you!