Hi I have to print each element in nested list using nested loops, but the code i wrote prints each element per line, but i need it to print all the items in the inner list per line.
new_grid=[['(a)', '(b)'], ['(c)','(d)'], ['(e)', '(f)']]
def print_newgrid():
'''
when printed it should look like:
(a)(b)
(c)(d)
(e)(f)
'''
for i in new_grid:
for j in i:
print(j)
This prints each element per line, instead of two. Any help is appreciated thanks