Solving Problems Using Python
Unit 9
The previous unit built an understanding of writing an algorithm in Python.
Python will be used to write, execute, and test programs in this unit. As the previous unit mentioned, it is
essential to focus on
efficient coding.
Besides writing the code to solve the problem, it needs to check how long it takes to run the program.
A programmer needs to pay attention, especially by using iterations and recursions, since the code's run time depends on how long the computer iterates a task.
Therefore, using the proper loop command is crucial for simultaneously achieving a correct and quick output.