Skip to content

First function example should return something #10

@sglyon

Description

@sglyon

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions