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
1
Q
A
2
Q
A
3
Q
A
4
Q
Defining functions
A
To define a function, type on python:
def square(number):
return number ** 2