NYUDataBootcamp / Book

Textbook to accompany class
Creative Commons Attribution 4.0 International
7 stars 4 forks source link

First function example should return something #10

Open sglyon opened 7 years ago

sglyon commented 7 years ago

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.