ellesehc

stars

Apr 25th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. def stars(character, max_int):
  2.     i = 1
  3.     space = max_int
  4.    
  5.     while i < max_int:
  6.         print (space * " ") + i * character
  7.         i = i + 1
  8.         space = space -1
  9.     while i > 0:
  10.         print (space * " ") + i * character
  11.         i = i -1
  12.         space = space + 1
Advertisement
Add Comment
Please, Sign In to add comment