I have to print a diamond pattern in Python, but the diamond is different. There are 2 input variables m and n. m represent the number of the blocks where n represents the head on that block, and if the lines on the head are greater than 2, then lines () are inside the block [Head_lines - 2 = number of '']. check the attached picture for reference def picture(rows, columns): for _ in range(rows): # Top part print((' ' + '/\\' * columns).rstrip()) # Middle part print((' ' + '/ \\' * columns).rstrip()) print((' ' + '\\ /' * columns).rstrip()) # Bottom part print((' ' + '\\/' * columns).rstrip()) if rows > 1: print((' ' + '/ \\' * columns).rstrip()) print((' ' + '\\ /' * columns).rstrip()) print((' ' + '\\/' * columns).rstrip()) picture(1,1) picture(3,4) This is code I wrote, and I still haven't figured out a way to add '_' in the code. Continue reading...