Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. import time
  2. indent = 0
  3. IndentIncreasing = True
  4.  
  5. while True :
  6.     print(' ' * indent , end = '')
  7.     print('########')
  8.     time.sleep(0.2)
  9.  
  10.     if IndentIncreasing :
  11.         indent +=1
  12.         if indent == 10 :
  13.             IndentIncreasing == False
  14.  
  15.     else :
  16.         indent -=1
  17.         if indent == 0 :
  18.             IndentIncreasing == True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement