Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explanation of built-in functions #1004

Open
justindlc opened this issue Aug 4, 2022 · 1 comment
Open

Explanation of built-in functions #1004

justindlc opened this issue Aug 4, 2022 · 1 comment

Comments

@justindlc
Copy link

This is in fulfillment of instructor training checkout step 1.

I think for the "Built-in Python functions" portion (https://swcarpentry.github.io/python-novice-inflammation/01-intro/index.html), it would help learners to include an explanation of the role of parentheses in functions. It might not be necessary to go into invoking functions without parentheses, but it might help newcomers to understand that python functions are usually invoked with, for example, print().

The explanation for the introduction of this section could be as short as:

Most functions in Python are used with parentheses immediately after a word, like function(). Any items included inside of the parentheses are called arguments and tell the function what to do. So if we use print("Test.") then Test. is the argument used in this print function.

@jamesacris
Copy link

I may be misunderstanding, but as far as I can see there is already an explanation of parentheses in the built-in functions lesson:

When we want to make use of a function, referred to as calling the function, we follow its name by parentheses. The parentheses are important: if you leave them off, the function doesn’t actually run! Sometimes you will include values or variables inside the parentheses for the function to use. In the case of print, we use the parentheses to tell the function what value we want to display. We will learn more about how functions work and how to create our own in later episodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants