Calculate Sum Get User Input Patterns Program Find Area of CircleFind Area of Rectangle Perimeter of Rectangle Find Even and Odd Numbers Find Sum of Digit in Python Find Factorial in PythonPrint Fibonacci Series Check Armstrong Number Reverse a Number Check Palindrome Number Swap Two Numbers Matrix MultiplicationFind Perfect NumberAdd Two Matrix in Python Find Sum of Squares Find Sum of Cubes Find URL in String

List Programs

Find Largest in List Find Duplicate in List Check Alphabet Remove Duplicate Elements from List Reverse List Elements Find Element in Python List Interchange first and last element in List Find Even Numbers in List Find Length of a List Find Sum of list Elements Find Elements in List Get the product of List elements Interchange List Elements Find Smallest Elements in List Find Max Value in a List

Area of a rectangle can be found by multiplying its length and width. You can refer Algorithm and flowchart of this program as well for better understanding.

**Step1:** Take two numeric values (length and width) from the user

**Step2:** Multiply both values and store result into a new variable

**Step3:** Display the result

This program is tested and executed using Atom IDE with Python 3.8 version. To find area, we cast user input to float because input function returns string type value.

l=float(input('Enter height of rectangle'))

b=float(input('Enter width of rectangle'))

area = l*b

print("Area = ",area)

Enter length of rectangle 10

Enter width of rectangle 20

Area = 200.0