Skip to content

Commit d019c9b

Browse files
lindboedas-g
andauthored
Limit explanation to current function
Make it clear that we only have to define the given function before we call it, to avoid making readers think they might have to define all functions before any are called Co-Authored-By: Raphael Das Gupta <[email protected]>
1 parent eda827b commit d019c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/python_introduction/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ hi()
815815

816816
Okay, our first function is ready!
817817

818-
You may wonder why we've written the name of the function at the bottom of the file. When we write `def hi():` and the indented lines following, this is us writing instructions for what the `hi()` function should do. Python will read and remember these instructions, but won't run the function yet. To tell Python we want to run the function, we have to call the function with `hi()`. Python reads the file and executes it from top to bottom, so we have to define functions in the file before we call them.
818+
You may wonder why we've written the name of the function at the bottom of the file. When we write `def hi():` and the indented lines following, this is us writing instructions for what the `hi()` function should do. Python will read and remember these instructions, but won't run the function yet. To tell Python we want to run the function, we have to call the function with `hi()`. Python reads the file and executes it from top to bottom, so we have to define the function in the file before we call it.
819819

820820
Let's run this now and see what happens:
821821

0 commit comments

Comments
 (0)