fork download
  1. def makeList(filename):
  2. my_list = []
  3. sourceFile = open(filename, "r")
  4. for r in sourceFile.readlines():
  5. r = r.strip("\0").strip("\n").strip("\r").strip("[").strip("]")
  6. prepared_list = r.split(", ")
  7. my_list.append(prepared_list)
  8.  
  9. return my_list
Success #stdin #stdout 0.02s 9984KB
stdin
Standard input is empty
stdout
Standard output is empty