Skip to content

Commit 567a0ec

Browse files
authored
Updates
1 parent 1807a5e commit 567a0ec

File tree

1 file changed

+7
-2
lines changed
  • BasicPythonScripts/The 2D Shape Area Calculator

1 file changed

+7
-2
lines changed

BasicPythonScripts/The 2D Shape Area Calculator/README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,15 @@ The 2D shape Area Calculator is basic python script enables us to easily calcula
2727
- Based on the shape opted by the user, it executes that particular block of code and takes input from user and gives Area as output.
2828

2929
## Compilation Steps
30-
- Download "2D_shapes_area_calculator.py" file.
30+
- Download " [2D_shapes_area_calculator.py](https://github.com/DurgaSai-16/Awesome_Python_Scripts/blob/main/BasicPythonScripts/The%202D%20Shape%20Area%20Calculator/2D_shapes_area_calculator.py) " file.
3131
- Run "2D_shapes_area_calculator.py" file.
3232
- Find the area of any 2D shape by entering required inputs properly.
33-
- For more information on import statements, refer to "requirements.txt".
33+
- This program is made of simple "if - elif - else" syntax.
34+
- Start of the program every 2D shape is assigned a particular option. i.e., `print("Please choose one of the following option to find Areas of 2D shape: \n1.Circle \n2.Triangle \n3.Square \n4.Rectangle \n5.Parallelogram \n6.Trapezium \n7.Ellipse")`
35+
- The `if` statement checks for condition and if this condition evaluates to True,then the statements inside the if block will be executed.
36+
- If `if` condition evaluates to False, then flow of program control goes to `elif` statement and if this condition evaluates to True,then the statements inside the elif block will be executed.
37+
- The flow of control goes to `else`condition when the `elif` condition evaluates to False.
38+
- For more information on import statements, refer to "[requirements.txt](https://github.com/DurgaSai-16/Awesome_Python_Scripts/blob/main/BasicPythonScripts/The%202D%20Shape%20Area%20Calculator/requirements.txt)".
3439

3540
## Output
3641
- **Area of Circle**

0 commit comments

Comments
 (0)