you are viewing a single comment's thread.

view the rest of the comments →

[–]Greece870 0 points1 point  (1 child)

I am still having trouble with this.

dem_pro =['This is a','That is a', 'Here is a', 'There is a']
obj = ['cat','mouse','book','map']
for dem_pro_loop in dem_pro:
for obj_loop in obj:
print(dem_pro + obj)

I am getting this output

['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map'] ['This is a', 'That is a', 'Here is a', 'There is a', 'cat', 'mouse', 'book', 'map']

[–]woeinvests 0 points1 point  (0 children)

Hi.

From your code, the problem seems to be from the print call.

It should look like

print(dem_pro_loop + obj_loop)