Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def print_brett(brett): # oppgave 2g
- N = len(brett)
- for y in range(N):
- s=''
- for x in range(N):
- if brett[y][x]==1:
- s=s+'.'
- elif brett[y][x]==0:
- s=s+'O'
- elif brett[y][x]==5:
- s=s+'*'
- print s
Add Comment
Please, Sign In to add comment