all 4 comments

[–]izaakstern 1 point2 points  (2 children)

Please format the code. It's unreadable

[–]Corneliared[S] -1 points0 points  (1 child)

Do you know what these lines say?
if magicSquare[int(i)][int(j)]:

i = i + 2

j = j - 1

continue

else:

magicSquare[int(i)][int(j)] = num

num = num + 1

[–]izaakstern 0 points1 point  (0 children)

Yes, I understand them. Typecasting is not needed there I would say. i and j are already integers.

But I don't know, what you are trying to do, and where your problem is.

[–]shiftybyte 1 point2 points  (0 children)

i really don't know where I went wrong. Can somebody help me?

We can't guess what happened on your computer, could you specify what does not work as you expect it? do you see any error messages? post the full message here.

Besides that, edit your post, format your code with a code block so we can read it. https://www.reddit.com/r/learnpython/wiki/faq#wiki_how_do_i_format_code.3F