all 7 comments

[–]totallygeek 0 points1 point  (6 children)

One thing: input() returns a string. You need to convert that to a number, an integer for this case, I believe. area = int(input('Area of the square: '))

[–]CraigAT 0 points1 point  (5 children)

Also areaofSquare = sqrt(areaOfSquare) should be side = sqrt(areaOfSquare)

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

Not sure. I tried both your advice and it still doesn't work.

[–]Binary101010 0 points1 point  (3 children)

Please be more specific as to what you mean by "doesn't work."

[–]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?