Repetition
Repetition is the recurrence or repeated application of an action, operation, element, or pattern.
Design for Developers
Repetition is a design principle that applies consistent visual elements, styles, components, or layouts to create unity and recognizable patterns.
- How it is used
- Establishes consistent visual and component patterns that orient users and unify website and brand experiences.
- How deep it goes
- Defines repetition and explains its visual, usability, component, scalability, and performance implications without implementation detail.
- Examples
- Uses blog post typography, hotel listings, brand color and type, add-to-cart buttons, and stock-status treatments.
- What you can do after
- Apply it via reusable styles and components to create cohesive, scannable interfaces with recognizable actions.
Get Programming: Learn to code with Python
Repetition is the performance of a task or sequence of steps more than once.
- How it is used
- Uses repetition to generate repeated strings and automate commands that would otherwise require duplicated statements.
- How deep it goes
- Explains string multiplication, loop execution, termination, range(N), and unrolling, but stops short of broader loop varieties.
- Examples
- Uses hangman markers, greetings, shampoo instructions, bread recipes, and a range(3) loop printing 0, 1, and 2.
- What you can do after
- Apply repetition via Python string multiplication and for loops with explicit counts and stopping conditions.
Read how Get Programming: Learn to code with Python explains repetition →
Related concepts
- loopimplemented by · A loop is a programming control-flow construct that repeatedly executes a block of instructions according to an iteration rule or continuation condition.
- principlekind of · A principle is a general rule, guideline, or value that guides decisions, behavior, or judgments.
- implicit time modelpart of · The representation of time and execution behavior provided implicitly by a programming language or runtime.
- randintproduced by · random.randint is a Python standard-library function that returns a pseudorandom integer between specified inclusive lower and upper bounds.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

