Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update README.md#9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
alesanchezr merged 1 commit into4GeeksAcademy:masterfromhexbreak:patch-1
Feb 8, 2021
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletionsexercises/04-Call-a-function/README.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@ tutorial: "https://www.youtube.com/watch?v=NU5iW_bWwmY"

# `04` Calling a function

A function could receive0 parameters, andyou canit always returns something,event if you don't explicitly add the `return` statement.
A function could receivezero parameters, and it always returns something,even if you don't explicitly add the `return` statement.

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

Expand All@@ -15,7 +15,7 @@ def calculate_area(length, edge):
return length * edge
```

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

```python
length = 3
Expand All@@ -30,7 +30,7 @@ area = calculate_area(3,6)

# 📝 Instructions:

Create a new variables named square_area1, square_area2, square_area3 and call the function calculate_area3 times onefo each square in the picture, for example:
Create a new variables named square_area1, square_area2, square_area3 and call the function calculate_areathree times onefor each square in the picture, for example:

```python
# For the first figure:
Expand All@@ -41,7 +41,7 @@ square_area1 = calculate_area(4,4)

# 💡 Hint:

Call the `calculate_area` function3 times, one per each square, passing the length and edge of each square.
Call the `calculate_area` functionthree times, one per each square, passing the length and edge of each square.

:tv: [9 min video about functions in python](https://www.youtube.com/watch?v=NE97ylAnrz4)


[8]ページ先頭

©2009-2025 Movatter.jp