How to print patterns in one line in Python 3?
I have this code to print ‘H’ in a pattern using ‘*’: def grid_h(): result_str=”; for row in range(5): for column in range(5): if((column == 0 or column == 4) or (row == 2)): result_str = result_str + ‘*’ else: result_str = result_str + ‘ ‘ result_str = result_str + ‘\n’ return result_str I’m trying… Read More How to print patterns in one line in Python 3?