daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top