Skip to content

Commit a237664

Browse files
authored
Merge pull request #353 from lingling-CB/gh-pages
Add an intermediate step in explaining how to call a function
2 parents 4317771 + a52df3c commit a237664

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

_episodes/06-func.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,14 @@ Inside the function,
6868
we use a [return statement]({{ page.root }}/reference/#return-statement) to send a result back to whoever asked for it.
6969

7070
Let's try running our function.
71-
Calling our own function is no different from calling any other function:
7271

72+
~~~
73+
fahr_to_kelvin(32)
74+
~~~
75+
76+
This command should call our function, using "32" as the input and return the function value.
77+
78+
In fact, calling our own function is no different from calling any other function:
7379
~~~
7480
print('freezing point of water:', fahr_to_kelvin(32))
7581
print('boiling point of water:', fahr_to_kelvin(212))

0 commit comments

Comments
 (0)