Computer Science, asked by naira246, 1 year ago

Using python code highlight use python module s and top down design.

Answers

Answered by nidaeamann
2

Explanation:

In programming languages, a function may be called from either the main code of a program or from other functions. Same applies to Python language

One approach of handling the complexity of writing a complex program is called Top-Down Design. In top-down design the programmer decides what major framework the program will work and then go into the details of how it is done, the programmer just defines a function that will handle that later.

Python code example:

In = i n p u t ("Please enter a list of integers separated by space:")

Ist= []

f o r x i n s.split ():

lst.append( i n t (x))

evenlyDivisible (lst)

Now the program is calling a function evenlyDivisible which is not defined yet(will be defined later). That’s top down approach

Similar questions