+ 3
Write a function in python to read side of a square from keyboard and print area of a square.
2 Answers
+ 3
okay thnx đ
0
Your code is right, it's just not indented as required.
def CalcArea(): #function definition
side=float(input("Enter side="))
return side*side
print("Area of square")
a=CalcArea() #function call
print("Area=",a)