Square Patterns in Python

In the previous article we explored Nested Loops, now starting from this article we will look at a series of pattern related programs. First we will start with the square type pattern. Suppose the user enters a number n, the program should return a star pattern with the size n*n. Example for the input of … Read more

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

Multiplication Table of a Number in Python

In the previous article we explore the For Loop structure, now let us take a look at an example case of printing Multiplication Table of a Number in Python. If a user provides the number 3, we return 3, 6, 9, 12, 15, 18, 21, 27 and 30. If the number specified was 5 instead … Read more

For Loop in Python

In the previous article we explore the use of the range( ) function in Python, in this article we will explore another important kind of loop, that is the For Loop. A  for loop in the Python programming language is designed to iterate over the elements of data structures and some other objects. It is not … 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

Strings in Python

In the previous article we saw how could obtain the prime factors of a number, now we will examine the role of Strings in Python. A string consists of a sequence of characters, it is typically used to store text data. Any other object in Python can be translated to the string that matches it. To … Read more

Complete Java Tutorial for Beginners

In this tutorial post, I am going to cover all the core java concepts that is necessary for getting started in the java programming language. I will start from the bare basics assuming that this is the first time you will be interacting with java programming language. After completing this tutorial you will be ready … Read more

Calculator program in Python

In the preceding article we have written a program to determine whether a given year is a leap year. Now we will look at a program to implement basic common calculator utility functions for user-given input numbers for whichever operation is selected. If we imagine a calculator and it’s working, we understand that there needs … Read more