Continue function in Python

In the previous article we explored the utility of the Break function, now we will explore the continue function in Python. Let us take a look at an illustrative problem and example: We are given a list of numbers, and we need to print out only those values from the list which are not the … Read more

Break function in Python

In the previous article we have gone through the various approaches of writing a program to print multiplication tables, now let us explore the break function in Python. Before we explore the concept and usage let us look at a problem. We are required to get the smallest divisor of a number such that the … Read more

range( ) function in Python

In the previous article we explored while loops, now we will look at the purpose of the range ( ) function. The range ( ) function is used to generate a specified range of numbers. There are three forms of range functions, and we will explore each one. Suppose we specify a range(5), the number … Read more