Chapter 4 part 1 Flashcards

1
Q

Define

Divide and conquer

A

Using existing functions as building blocks for creating new programs is a key aspect of software reusability – it’s a major benefit of object-oriented programming

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

Defining functions

A

To define a function, type on python:
def square(number):
return number ** 2

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