From 30db79534ae77dbb8adb91c02e863b4eb33add23 Mon Sep 17 00:00:00 2001 From: vnakonechnyi Date: Sat, 21 Dec 2024 20:42:34 -0500 Subject: [PATCH] Added formatted print --- rectangle01.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rectangle01.py b/rectangle01.py index d2c7c0e..fd822ec 100644 --- a/rectangle01.py +++ b/rectangle01.py @@ -4,4 +4,4 @@ width = float(input("Enter a value for width ")) areaOfRectangle = length * width -print("Area = ",areaOfRectangle) \ No newline at end of file +print(f"Area = {areaOfRectangle:.2f}") \ No newline at end of file