Niche Political Commentor
Wear a mask
I contacted my son and he said this.
we fucking know tom, your son said what I said like 40 hours ago at this point
I contacted my son and he said this.
Then you suck because that shouldn't happen.
OK, I do get it. (I think.) Code works now. Thank you and thanks to APL for the time you guys spent explaining it.
Now I'm ready to move on. The original problem in the book of puzzles was an 8 X 8 grid. Each horizontal line similar to my PLst: [2, 0, 4, 5, 7, 0, 3, 2] with some of the numbers in each line missing. Those are the ones I filled in with zero.
The challenge is to make each horizontal line AND each vertical line add to thirty. Well, I'll just type the entire puzzle.
[2, 0, 4, 5, 7, 0, 3, 2]
[0, 4, 1, 6, 0, 1, 9, 0]
[4, 0, 0, 1, 0, 8, 2, 4]
[1, 5, 0, 0, 5, 0, 0, 2]
[0, 6, 4, 3, 0, 4, 2, 6]
[7, 3, 4, 0, 2, 5, 1, 0]
[0, 1, 6, 7, 1, 0, 0, 2]
[1, 0, 2, 0, 3, 2, 5, 0]
So all sixteen lines have to add to thirty. Now that you've pointed me in the right direction, I'm going to forge ahead and attempt to finish the puzzle.
Are you an alcoholic?
we fucking know tom, your son said what I said like 40 hours ago at this point
we fucking know tom, your son said what I said like 40 hours ago at this point
Is it alcoholic if I just love beer?
we fucking know tom, your son said what I said like 40 hours ago at this point
It's Grind, Tom.
Ah well that would explain everything, obviously had a bad Xmas, did his mother force him to go to midnight Mass again?
My son explained in a clear easily understandable way [..bunch of shit no one cares about]
I contacted my son and he said this:
The variable I is the value inside the array, not its index
Hence it is wrong to write Plst
Instead it should be just I in the if statement
OPs problem is doing the "if list == 0" conditional
Just do:
for item in list:
----if item == 0:
--------<other stuff goes here>
if list[item] == 0: <--- don't do this
rather than just simply using
if item == 0:
DO. NOT. USE. "if PLst == 0" Don't. STOP!
The conditional should be "if i == 0"
do so by doing if element == x. Not if list[element] == x.
his issue is wrongly trying to evaluate an element by doing if list[item] == 0
for i in JPPAssholes:
print(i)
we fucking know tom, your son said what I said like 40 hours ago at this point
this is what your son said:
hmm where have we heard that before
we fucking know tom, your son said what I said like 40 hours ago at this point
Happy Xmas to you as well, did you get laid? I'm guessing not.
i assume you can't use numbers large than 9 in the grid?
Make your next name be Grindgames, it suits you perfectly.
bubba lets all collectively do another puzzle. let me know when you have a new one
bubba lets all collectively do another puzzle. let me know when you have a new one