Project design
- Python course
- Intermediate
- Lesson 112/116
- 6 min
Design the intermediate final skeleton.
Project: Word processing app
In this five-lesson intermediate final you will build a word processing app that combines everything you have learned. In the first lesson you define a word list and print its length.
In later lessons you will add layers for functions, generators, file I/O and classes on top of this base. Each lesson adds one piece with a code step; the starting code includes the previous lesson's solution. This shows how a real app grows.
Practice Define and count the word list
Assign ["elma", "armut", "elma"] to words. Then write print(len(words)).
Starter code
# Word processing - word list
# define the words list and print its lengthSample solution
words = ["elma", "armut", "elma"]
print(len(words))Expected output
3
Next step: function layer
The word list is ready. In the next lesson you will add a function layer on top: counting unique words with set. This layer will hold a function that summarises the raw data. Each lesson adds a layer; the starting code carries the previous solution and you write only the new part.
Questions and answers
Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.
1 What will we process in this project?
- Words Correct answer
- Images
- Audio files
- Video
Explanation: We will process words — counting, generating, reading from files.
2 Complete the word list
words = ____
words = ["elma", "armut", "elma"]
Explanation: You defined a list with three words.
3 Match project concepts
| Term | Meaning |
|---|---|
words |
Word list |
len |
Count |
set |
Unique |
yield |
Generator |