Skip to content

First function example should return something #10

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

Open
sglyon opened this issue Sep 20, 2016 · 0 comments
Open

First function example should return something #10

sglyon opened this issue Sep 20, 2016 · 0 comments

Comments

@sglyon
Copy link
Member

sglyon commented Sep 20, 2016

Right now our first taste of functions (in pyfun2) is the following:

def hello(firstname):               # define the function
    print('Hello,', firstname)

hello('Chase')                      # use the function

Because we take the time to walk through all syntax using this example we should cover return values here.

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

No branches or pull requests

1 participant