Guest User

Untitled

a guest
Aug 10th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import csv
  2.  
  3. def loadGrid(file):
  4. with open("C: Users Desktop file.txt") as file:
  5. grid = []
  6. for gridLines in csv.reader(file):
  7. # The rstrip method gets rid of the "n" at the end of each line
  8. grid.append(gridLines.rstrip().split("[]"))
  9.  
  10. loadGrid(file)
Add Comment
Please, Sign In to add comment