I am using praw to extract data room reddit i want to get the submission title id and the comments however the for loop that gets the comments for each submission makes it only print one submission and the comments for that submission however it should be 10 posts.
subred = reddit.subreddit("apexlegends")
hot_apex = subred.top(limit=10)
items = hot_apex
first = next(items)
print('first item:', first)
comment = reddit.submission(id=items)
print (type(comment)
for item in items:
print ('NEW POST--',item.title,'post id --', item)
i = str(item)
sub_id = reddit.submission(id=i)
for comment in sub_id.comments:
print (comment.body)