Sep-11-2019, 05:45 PM
(Sep-11-2019, 04:44 PM)ichabod801 Wrote:for row in range(10): for brick in range(row + 1): print('#', end = ' ') print()
Yay! haha..
for row in range(1,10): for column in range(1,row + 1): print(row * column , end = ' ') print()its the first time I see "end" used like that in the inner print line, how does it work if its not defined in the code? neither do I see its coloured like other commands but yet it has a function? can you please explain how it works if you don't mind?