Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- #Grapher.py
- #Author Triclops200
- grid = []
- for y in range(21):
- grid.append([])
- for x in range(41):
- if (y-10) == (x-20)**2:
- grid[y].append("*")
- elif x == 20 and y == 10:
- grid[y].append("+")
- elif x == 20:
- grid[y].append("|")
- elif y == 10:
- grid[y].append("-")
- else:
- grid[y].append(" ")
- out = []
- for xs in grid:
- st = ""
- for x in xs:
- st += x
- st += '\n'
- out.append(st)
- out.reverse()
- print("".join(out))
- ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement