colorful double helix
procoder165 (130)

was bored again in class so I decided to make this.

You are viewing a single comment. View All
pyplacca (1)

@imnuex but then, print still appears more than once for the same purpose. You need to keep the Don't Repeat Yourself principle in mind.
So you could write something like this;

def h():
    print(
        '*'*6, 
        '*'*5,
        '*'*4,
        '*'*3,
        '*'*2,
        '*'*1,
        '*'*1,
        '*'*2,
        '*'*3,
        '*'*4,
        '*'*5,
        '*'*6,
        sep='\n'
    )
while True:
    h()