Decode School

Decode School - The School for Problem Solvers

Welcome to my blog. Subscribe and get my latest blog post in your inbox.

Area of Square in Python

Python program to get side of square and find area of square

Sample Input 1:


Sample Output 1:


Program or Solution

side=int(input("Enter the side:"))
print("area: {}".format(area))


Program Explanation

get a side value of a square using input() method calculate area = side * side