livepython.net

22. Python Program to Find the Area of a Rectangle Using Variables

MediumVariables

Overview

Calculate values using variables.

Problem Statement

Calculate the area of a rectangle using variables.

Constraints:

  • Use length = 5 and width = 3
  • Print the result with a label "Area:"
  • Store the result in a variable first

Input

  • No input required

Output

Area: 15

Learn this firstChapter 4 · Python Variables: Store and Use Values
solution.py
# write your code here

EXPECTED OUTPUT

1Area: 15

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.