def enlarge(list_arr):
second_list = []
if len(list_arr) == 0:
return list_arr
else:
for i in range(len(list_arr)):
second_list.extend(list_arr[i] * 2)
return ''.join(second_list)
def enlarge(list_arr, multi=2):
result = []
if list_arr in [[''], []]:
result = list_arr
else:
for row in list_arr:
new_row = ''.join([i*multi for i in row])
for _ in range(multi):
result.append(new_row)
return result
def print_pic(picture):
for row in picture:
print(row)
print()
pic = ['1001', '0011', '0101', '1111']
print_pic(pic)
print_pic(enlarge(pic))
print_pic(enlarge(pic, 3))
print(enlarge(['']))
print(enlarge([]))