DEV Community

Discussion on: Daily Challenge #52 - Building a Pyramid

Collapse
ctimmerman profile image
Cees Timmerman • Edited on
def pyramid(lines):
  for line in range(1, 1 + lines * 2, 2):
    print(' ' * (lines - line // 2 - 1) + '*' * line)