Question

Search the Web for an example of a structured program in Python. Share the link to...

Search the Web for an example of a structured program in Python.


Share the link to the example and describe how it works.


Why do we use structured programming in Python?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

In structured programming the value of a structured object such as a list is a reference to the object.

Here list2 references to list2 but not just copy the contents of the list1.

If list1 is modified then list2 is also modified.

They share same memory locations and references are created.

Assignemene works on values but the value of a structured object is reference to that object.

The same is true for functions.

Strructured program in python can be written with only taking 3 types of elements.

1.Sequence

steps are done in a sequence.

2.Decision

if else statement:

Executes a block statements if it satisfies the given condition.

3.Repitition

repeats a block of statements until a given condition is true like while or for loops.

Why do we use:

1.Easier to understand.

2.Easier to maintain.

3.contains well structured and separated modules.

4.User friendly.

5.Errors are more easily found.

6.High productivity.

7.Independent of machine that means can run on any machine.

Sorry to say that links can not provided in HomeworkLib as it violation of check policies.

Please do vote(LIke).

Add a comment
Know the answer?
Add Answer to:
Search the Web for an example of a structured program in Python. Share the link to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT