r/programming • • Jul 28 '26

Five Languages, One Pyramid, Zero Practical Value

https://fortypoundhead.com/showcontent.asp?artid=52083
0 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/Refresh98370 Jul 29 '26

h=5;print('\n'.join(((" "(h-r))+(""((r2)-1))) for r in range(1, h+1)))

Wow!

I'm still learning Python, so to me, it's kind of cool to see one-liner stuff like this. Thanks for sharing!