Pythagoreans challenge

please help why is print() giving indentation error …plz help

Which print statement are you talking about ? Please specify the line number too.

last line of the code plz help me debug

This error is quite common and arises when you mix both tabs and spaces when indenting your code. Replace all tabs with spaces or vice-versa to resolve this issue.

i have checked its all indented properly
plz hepl


This is your code after I replaced all the space based indentation with tabs.
It works now without affecting the logic of the code. In the future, stick to one (tabs or spaces) when indenting Python code.

ok thank you …but how do i add the brackets like around (0,5) in this code

Either you can hard-code:

print('(',i,',',j,')', sep='', end=" ")

Or use formatted strings:

print(f'({i},{j})', end=" ")


on submission its still giving error?

Please attach the link where you are trying to submit.

https://online.codingblocks.com/app/player/65880/content/59916/4715/code-challenge
@CrazyRabbit

Hi @Tiya,
The code you have attached here does not follow the output format. Please make sure you follow the output format exactly.
e.g.
For Input:
3
1
9
25
Your Output:
0,1
0,3
0,5 3,4
Expected Output:
(0,1)
(0,3)
(0,5) (3,4)

Refer to this line of code:

print('(',i,',',j,')', sep='', end=" ")

Happy Learning!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.