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

Leap Year Program in Python

In the previous article we have seen the programs and logic relating to figuring out the largest of three numbers provided by user, in this article we will look at how to implement Leap Year logic in Python. Leap year is the year in which an additional day exists in February, and occurs about every … Read more

Largest of Three numbers program in Python

In the previous article we explored a problem involving a python game utilizing Even or Odd Logic, now we need to write a program to accept three numbers from the user and then automatically provide to us the largest of the three numbers. Suppose the user provides the program the numbers: a=10, b= 15, c=7 … Read more

Even-Odd problem in Python

Previously we have looked at the conditional statements in Python, In this article we will examine a problem related to even or odd concept. In this particular case of two examples imagine a game where you and your opponent are playing, and we are given a number of points. In the first example we have … Read more

if-else and elif statements in Python

In this article we will explore the If-else and elif statements in Python. These statements exist to execute code if certain conditional statements are satisfied. They can be very helpful for specific needs or tasks. For example while working on an online form, which requires the user to enter a username. The user has strongly … Read more

Bitwise Operators in Python

Sometimes we work with unusual digits or values which are involved in our program’s operations. One such case is when we work with Binary digits(bits) of integer values. Bitwise Operators in Python allow us to work or manipulate such data when required in our program. The Python language supports working with binary digits (bits) of … Read more

Days Before N Days in Python

In the previous article we explored the sum of Natural Numbers in Python. Suppose we are given some days, each number means a successive different day for example: Sunday represents 0, 1 represents Monday, 2 represents Tuesday, 3 represents Wednesday, 4 represents Thursday, 5 represents Friday, 6 represents Saturday. The program calculates the number of … Read more