Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # print_pattern.py
- w=9
- for i in range(w):
- cond=[0,i,w-1-i,w-1]
- t=""
- for j in range(w):
- t+="* " if j in cond else " "
- print(t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement