git_practice/rectangle01.py

7 lines
174 B
Python

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