git_practice/rectangle01.py

7 lines
184 B
Python

length = float(input("Enter a value for the length "))
width = float(input("Enter a value for the width "))
areaOfRectangle = length * width
print(f"Area = {areaOfRectangle:.1f}")