Pythagorean challenge

in the code , the output is correct but it shows it like(2,3.0).
why is this point 0 thing printing when i have type-casted it into a string in my print statement?

Hey @yashikakhurana00, this is because b is a float variable in your code, you can change the print statement to this to get the desired result.

print("("+str(a)+","+str(int(b))+")",end=" ")

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

it is giving a wrong answer on submitting.

Hey @yashikakhurana00, are you too enrolled in Data Science Course?
If yes, is there any whatsapp group or something for doubt clearance?
Thanks in advance.

Hey @Sumedh-S_Mandhan-365464850523485, yes there’s one whatsapp group as well, for the batch.
Contact the coding blocks team, if you are not added in group.

yes, you may find the link to the whatsapp group on your course dashboard.

Thanks a lot @S18CRX0120 and @yashikakhurana00

@yashikakhurana00
Watch this hint video to solve it in O(1) time.

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.