Write a function in python to read side of a square from keyboard and print area of a square. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Write a function in python to read side of a square from keyboard and print area of a square.

https://code.sololearn.com/cx4Gp19cVgbj/?ref=app

3rd Oct 2018, 1:55 PM
Sparshika
Sparshika - avatar
2 Answers
+ 3
okay thnx 😊
3rd Oct 2018, 2:44 PM
Sparshika
Sparshika - avatar
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)
3rd Oct 2018, 2:39 PM
strawdog
strawdog - avatar