From e32f0dac4685a6068188e5aac8262fd5d3a828c1 Mon Sep 17 00:00:00 2001 From: reregaga <76629445+reregaga@users.noreply.github.com> Date: Mon, 17 Oct 2022 02:39:12 +0300 Subject: [PATCH] Add inline-code markup to function name --- op_exp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op_exp.md b/op_exp.md index c960b200..f6c832a7 100644 --- a/op_exp.md +++ b/op_exp.md @@ -195,7 +195,7 @@ Perimeter is 14 **How It Works** -The length and breadth of the rectangle are stored in variables by the same name. We use these to calculate the area and perimeter of the rectangle with the help of expressions. We store the result of the expression `length * breadth` in the variable `area` and then print it using the `print` function. In the second case, we directly use the value of the expression `2 * (length + breadth)` in the print function. +The length and breadth of the rectangle are stored in variables by the same name. We use these to calculate the area and perimeter of the rectangle with the help of expressions. We store the result of the expression `length * breadth` in the variable `area` and then print it using the `print` function. In the second case, we directly use the value of the expression `2 * (length + breadth)` in the `print` function. Also, notice how Python _pretty-prints_ the output. Even though we have not specified a space between `'Area is'` and the variable `area`, Python puts it for us so that we get a clean nice output and the program is much more readable this way (since we don't need to worry about spacing in the strings we use for output). This is an example of how Python makes life easy for the programmer.