You are viewing a single comment's thread. Return to all comments →
one liner
(lambda num: [print(('#'*x).rjust(num)) for x in range(num+1)])(int(input().strip()))
i have got the error as follows...
(lambda num: [print(('#'*x).rjust(num)) for x in range(num+1)])(int(input().strip())) ^ SyntaxError: invalid syntax
can you please help me why it so.....
Staircase
You are viewing a single comment's thread. Return to all comments →
one liner
i have got the error as follows...
(lambda num: [print(('#'*x).rjust(num)) for x in range(num+1)])(int(input().strip())) ^ SyntaxError: invalid syntax
can you please help me why it so.....