start = 5 for i in range(start): if i == 0: print('##') else: print('#',i*'o','#',sep='')
Output:I am getting my Expected Output
##
#o#
#oo#
#ooo#
#oooo#
I am a Python Learner, would like to know if in what other way we can code better than above code, please suggest