How can a small program be easier to change?
A named function groups a responsibility behind a clear input and output.
Background and goal
Try the short introduction first, or bring equivalent reading experience. Obtain the specified text before beginning the longer reading.
Split a word-count script into reading, counting and reporting functions; explain each boundary.
Useful preparation
Start here if the background is new. Equivalent experience is enough.
Introduction to Computer science & programming
Introduces the vocabulary and a small example before the longer study.
Your pathway
5 steps · 14 hours- 01
Locate the reading
0.25h · week 1Reading notes and task
First fifteen minutesCheck the edition or article version and locate the passages below. Write the question you want the reading to resolve.Your outputEdition and passage record - 02
Study the opening
4h · week 1Python tutorial: modulesPython Software Foundation · reference
Python tutorial: defining functions and modules
Free full text
Open the readingReading notes and task
Python tutorial: modules. A named function groups a responsibility behind a clear input and output.
Try thisRead Python tutorial: defining functions and modules. Reconstruct the central argument using premises and a conclusion.Your outputArgument reconstructionCheck your understanding
Answer this question in your own words: How can a small program be easier to change?
Hint
Name the claim, then explain why a reader might accept it.
Compare with an example answer
A named function groups a responsibility behind a clear input and output.
What to look for
- States a claim that addresses the question
- Connects the claim to a passage or observation
- Separates the author’s argument from personal agreement
Common mistake: Summarising a biography instead of explaining the argument.
Start this pathway to keep your answers in My learning.
- 03
Read for contrast
5h · week 2Python tutorial: modulesPython Software Foundation · reference
Python tutorial: defining functions and modules
Free full text
Open the readingReading notes and task
Python tutorial: modules. A named function groups a responsibility behind a clear input and output.
Try thisRead Python tutorial: defining functions and modules. Compare two passages that put pressure on your initial interpretation.Your outputTwo-passage comparison - 04
Develop an example
3h · week 3Reading notes and task
Try thisSplit a word-count script into reading, counting and reporting functions; explain each boundary.Your outputWorked exampleCheck your understanding
What would make your activity a convincing example?
Hint
Split a word-count script into reading, counting and reporting functions; explain each boundary.
Compare with an example answer
A useful response carries out the task: Split a word-count script into reading, counting and reporting functions; explain each boundary. It records the observation or passage used and explains how it bears on the question.
What to look for
- Completes the specific task
- Shows evidence or reasoning rather than only a conclusion
- Identifies an alternative explanation or reading
Common mistake: Presenting an opinion without showing the example it rests on.
Start this pathway to keep your answers in My learning.
- 05
Write a considered response
1.75h · week 4Reading notes and task
Try thisWrite a response to “How can a small program be easier to change?” that uses both passages and tests its own conclusion. More functions do not automatically improve a design.Your outputReasoned response with referencesCheck your understanding
What is one conclusion this reading does not establish?
Hint
Test the boundary: More functions do not automatically improve a design.
Compare with an example answer
More functions do not automatically improve a design.
What to look for
- States a specific limit
- Explains why the reading does not warrant the stronger conclusion
- Distinguishes a limitation from dismissing the work
Common mistake: Treating a useful interpretation as an unrestricted fact.
Start this pathway to keep your answers in My learning.
All 1 resources
Background, different viewpoints, and further reading.
Python tutorial: modules
A named function groups a responsibility behind a clear input and output.
Python tutorial: defining functions and modules