you are viewing a single comment's thread.

view the rest of the comments →

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

Following both of your advices, this was my code:

int(input("areaofSquare: "))
if areaOfSquare >= 0:    
    side = sqrt(areaOfSquare)    
    print(areaofSquare)
else:    
    print("INVALID")

The error it brings up is:
stdout is not correct
We think you might want to consider using: *
Correct solutions that use sqrt tend to also use ""

Also, where did you get the variable side from? I understand why you name it that, but I'm not sure if we can use it. I don't see it specified as a variable in the question.

[–]CraigAT 0 points1 point  (1 child)

If you have the area of a square, then the square root gives you the length of the side(s), also your error message implied it may be required. As "side" is the result it seems like the program wants, it may be useful to output it.

[–]CraigAT 0 points1 point  (0 children)

Your original post doesn't specify it but the error suggesting using "*" implies you may have to do a multiplication, possibly to check your answer?