Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/python
- import sys
- def writeCross(size):
- for x in range(-size,size):
- for y in range(-size,size):
- if abs(y)==abs(x) and x!=-size and y!=-size:
- sys.stdout.write('*')
- else:
- sys.stdout.write(' ')
- sys.stdout.write('\n')
- writeCross(int(sys.argv[1]))
Advertisement
Add Comment
Please, Sign In to add comment