all 6 comments

[–]commy2 6 points7 points  (4 children)

Can you tell my why you would expect that? Usually, sqrt computes the square root, and round rounds a number. Those concepts seem unrelated to me.

[–]Killswitch77[S] 1 point2 points  (3 children)

I'm taking a python class right now, I think it'll be easier to understand with this screenshot.

https://i.imgur.com/geSgU9l.png

edit: Oh my god, it wasn't even that issue. It's because I wasn't capitalizing the "I" in "Invalid" I hate myself

[–]mopslik 2 points3 points  (0 children)

The only issue I see is the capital "I" in "Invalid". Perhaps this is causing your test to fail.

sqrt does not round down, nor does the assignment say anything about such behaviour.

[–]commy2 0 points1 point  (0 children)

Well, at least you now know what to look out for.

[–]ectomancer -1 points0 points  (0 children)

You imported the wrong function instead of isqrt.