Week 6 Flashcards
What is the shortcut for function?
def
What can you do with a function?
store information
HOw many types of functions are there in Python?
2 different types
What ois the first type of function in Python?
Build-in functions that are provided as part of Python:
raw_input, type etc
What is the second type of function in Python?
Functions that we design ourselves and then use.
How do we define functions?
With the def key word
What is a function in Python?
it is some stored code that we use. A function takes some input and produces some output.
Does a function when you define it print?
No
What is an argument?
a value we pass into the functoin as its input when we call the function
Where do we put arguments?
in parenthesis after the name of the function.
What is a parameter?
a variable which we use in the function definiton that is a handle that allows the code in the function to access the arguments for a particular function invocation
Wie finde ich den alphabetisch größten Buchstaben?
What do we call functions that do not return a value?
void functions