concept imperative in category python
appears as: imperative

This is an excerpt from Manning's book Tiny Python Projects: Learn coding and testing with puzzles and games.
This is basically another find-and-replace type of program, like swapping all the numbers in a string in chapter 4 or all the vowels in a string in chapter 8. We wrote those programs using very manual, imperative methods, like iterating through all the characters of a string, comparing them to some wanted value, and possibly returning a new value.