It can be observed that the five lines of codes follow the same pattern. This operation needs five lines of codes. We wish to print the elements one in a line. ![]() Suppose a Python list with five-string elements. Recursion or iteration helps one to write a few lines of codes to perform such repetitive tasks. However, some instructions may be repetitive with a common pattern. The computer performs those instructions line-by-line. ![]() ![]() A computer program consists of line-by-line instructions.
0 Comments
Leave a Reply. |