Week 6 Flashcards

1
Q

What is the shortcut for function?

A

def

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What can you do with a function?

A

store information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

HOw many types of functions are there in Python?

A

2 different types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What ois the first type of function in Python?

A

Build-in functions that are provided as part of Python:

raw_input, type etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the second type of function in Python?

A

Functions that we design ourselves and then use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do we define functions?

A

With the def key word

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a function in Python?

A

it is some stored code that we use. A function takes some input and produces some output.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Does a function when you define it print?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an argument?

A

a value we pass into the functoin as its input when we call the function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where do we put arguments?

A

in parenthesis after the name of the function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a parameter?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Wie finde ich den alphabetisch größten Buchstaben?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What do we call functions that do not return a value?

A

void functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly