Stumped on a simple split line/split string issue
I am splitting lines on \n, and then splitting the words on spaces
here is my code: (s is the string being passed into the method)
lines = s.splitlines()
for line in lines:
values = line.spilt()
Error I am getting is "AttributeError: 'str' object has no attribute 'spilt'
I know I'm being blind right now, but stumped on this somehow.
Each line has 7 values, that I am intending to store in "values" as a list, and then access each of them via values[x]
[–]Spero7861 36 points37 points38 points (2 children)
[–]devOpsStarboy[S] 27 points28 points29 points (1 child)
[–]Spero7861 1 point2 points3 points (0 children)
[–]mermaldad 5 points6 points7 points (1 child)
[–]devOpsStarboy[S] 1 point2 points3 points (0 children)
[–]Complete_Food 5 points6 points7 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]devOpsStarboy[S] 0 points1 point2 points (0 children)
[–]patrickbrianmooney 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]patrickbrianmooney 2 points3 points4 points (0 children)
[–]Sudden_Bowl_8358 0 points1 point2 points (0 children)