2024FALLcse160Lectures/bigos/20240924Lecture/Rectangle01.py

11 lines
167 B
Python

# Program to calculate the perimeter of a rectangle.
length = 4
width = 2
perimeter = (length + width) * 2
print("The perimeter of this rectangle is ",perimeter)