0
Printing "W" Pattern in python, need help to find bug
number of spaces increase with every loop, So our letter "W" is not drawing perfectly, please check and help . for i in range(1,10): for j in range(1,i): print(' ',end='') for k in range(1,2): print('x') if i in range(1,5): print('') else: for m in range(1,2): for l in range(20,i,-1): print(' ',end='') print('x') if i in range(1,5): print('') else: for n in range(-11,i): print(' ',end='') for o in range(1,2): print('x') for p in range(30,i,-1): print(' ',end='') for q in range(1,2): print('x')
1 Answer