Skip to content

Commit c0891c6

Browse files
authored
Update README.md
1 parent 6040cfd commit c0891c6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

exercises/04-Call-a-function/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,47 @@
22
tutorial: "https://www.youtube.com/watch?v=NU5iW_bWwmY"
33
---
44

5-
# `04` Calling a function
5+
# `04` Calling a Function
66

77
A function could receive zero parameters, and it always returns something, even if you don't explicitly add the `return` statement.
88

9-
:point_up: [Click here to read more about functions](https://content.breatheco.de/lesson/working-with-functions-python)
9+
👉 [Click here to read more about functions](https://content.breatheco.de/lesson/working-with-functions-python)
1010

1111
For example: a function that calculates the area of a square will be something like this:
1212

1313
```python
14-
def calculate_area(length, edge):
15-
return length * edge
14+
def calculate_area(length, width):
15+
return length * width
1616
```
1717

1818
If you want to use that function to calculate the area of a square with:
1919

2020
```python
2121
length = 3
22-
edge = 6
22+
width = 6
2323
```
2424

2525
You need to do something like this:
2626

2727
```python
2828
area = calculate_area(3,6)
29-
# The value of area will be set to 18
29+
# The value of 'area' will be set to 18
3030
```
3131

3232
## 📝 Instructions:
3333

34-
1. Create a new variables named `square_area1`, `square_area2`, `square_area3` and call the function `calculate_area` three times one for each square in the picture, for example:
34+
1. Create new variables named `square_area1`, `square_area2`, `square_area3` and call the function `calculate_area` three times, one for each square in the picture, for example:
3535

3636
```python
3737
# For the first figure:
3838
square_area1 = calculate_area(4,4)
3939
```
4040

41-
![img](http://i.imgur.com/VyoJRAL.png)
41+
![squares](http://i.imgur.com/VyoJRAL.png)
4242

43-
## 💡 Hint:
43+
## 💡 Hints:
4444

4545
+ Call the `calculate_area` function three times, one per each square, passing the length and edge of each square.
4646

47-
+ :video_camera: [9 min video about functions in python](https://www.youtube.com/watch?v=NE97ylAnrz4)
47+
+ 📹 [9 min video about functions in Python](https://www.youtube.com/watch?v=NE97ylAnrz4).
4848

0 commit comments

Comments
 (0)