235k views
4 votes
How to Calculate the area of a rectangle in python

User Kellermat
by
4.6k points

1 Answer

5 votes
Firstly, take input from the user for length and breadth using the input() function.

Now,calculate the area of a rectangle by using the formula Area = l * b.

At last, print the area of a rectangle to see the output.
User Keegan Jay
by
5.1k points