Python Online Compiler
Example: Python Program to Find Area of Rectangle
C
C++
C#
Java
Python
PHP
main.py
STDIN
Run
# Python Program to Find Area of Rectangle print("Enter the length & width of the rectangle::\n") l, w, a = float(input()), float(input()), None # It will calculate the area of the rectangle a = l * w print("\nArea of rectangle = ", a, "units")
5 7
Output
Clear
ADVERTISEMENTS