repl.it
@argthe1st/

Pyramids

Python

Why not?

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
def pyramid(item):
    a=[]
    for i in item:
        a.append(i)
        print(''.join(a))
    for count in range(len(a)-1):
        del a[-1]
        print(''.join(a))
        
pyramid('imagine actually coding in class')
?