Problem

MATLAB

Consider the following nested cell array,

q = {{'a', 'b', 'c'}, {'d', 'e', 'f'}, {'g', 'h'}}

Write a for-loop that extracts all the letters in the list and finally prints them all as a single string,

abcdefgh
Python

Consider the following nested list,

q = [['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h']]

Write a for-loop that extracts all the letters in the list and finally prints them all as a single string,

abcdefgh

Comments