Challenge 2-2: Inputs

Challenge 2-2: Inputs

What is input?

Input is information we pass to a function so that we can do something with it.

>>> def hello_there(myname):
print("Hello there", myname)

In this example, the string "Brienne" is the input, represented by the variable myname.

>>> hello_there("Brienne")
Hello there Brienne

myname is also the function's only parameter.