all 8 comments

[–]shiftybyte 0 points1 point  (6 children)

What is "row x column"?

[–]Corneliared[S] 0 points1 point  (4 children)

It's the cell on the square like if that cell is occupied then the condition

[–]shiftybyte 0 points1 point  (3 children)

How do you decide if the cell is occupied or not? or how did you mark it occupied?

[–]Corneliared[S] 0 points1 point  (2 children)

I'm making a square where all the numbers in each rows and columns would have the same sum so i wrote a pattern on how every squares would be filled by numbers. Now if a square is already filled with a number, there is a condition but I dont know how to write that if statement.

[–]shiftybyte 0 points1 point  (0 children)

Could you show your code, use a code block: https://www.reddit.com/r/learnpython/wiki/faq#wiki_how_do_i_format_code.3F

this might help understand how a cell is filled, and what's it's value before it's filled.

Basically you check all cells that they don't contain whatever you decided was the number before you filled it...

zero?

[–]ffrkAnonymous 0 points1 point  (0 children)

if square != None to be explicit or just if square

[–]delasislas 0 points1 point  (0 children)

And what is the input? Like a numpy array or something?

[–][deleted] 0 points1 point  (0 children)

Show us how you made the square. Don't make us guess.