Skip to content

Category Archives: School Programming

A Tuple is a collection of Python objects separated by commas. In someways a tuple is similar to a list in terms of indexing, nested… Read More
Prerequisite: Object-Oriented Programming in Python | Set 1 (Class, Object and Members)  Data hiding  In Python, we use double underscore (Or __) before the attributes… Read More
Like a class, an interface can have methods and variables, but the methods declared in an interface are by default abstract (only method signature, no… Read More
Background Prior to Java 7, we had to catch only one exception type in each catch block. So whenever we needed to handle more than… Read More
  Given a string, write a C/C++ program to reverse it.    Write own reverse function by swapping characters: One simple solution is to write… Read More
Java doesn’t support multi-value returns. We can use following solutions to return multiple values.   If all returned elements are of same type We can… Read More
In C++ we can store string by one of the two ways – C style strings string class (discussed in this post) In this post,… Read More
String is a sequence of characters. In java, objects of String are immutable which means a constant and cannot be changed once created. Creating a… Read More
We have explored basic python till now from Set 1 to 4 (Set 1 | Set 2 | Set 3 | Set 4).  In this… Read More
Interesting facts about strings in Python -Set 1 Like other programming languages, it’s possible to access individual characters of a string by using array-like indexing… Read More
  Example :  Input : 2 Output: 7 Series: (1) + (2*3) Input : 4 Output: 5167 Series: (1) + (2*3) + (4*5*6) + (7*8*9*10)  … Read More
The super keyword in java is a reference variable that is used to refer parent class objects.  The keyword “super” came into the picture with… Read More
List comprehension is an elegant way to define and create a list in python. We can create lists just like mathematical statements and in one… Read More
Scanner is a class in java.util package used for obtaining the input of the primitive types like int, double, etc. and strings. It is the… Read More
In the previous two articles (Set 2 and Set 3), we discussed the basics of python. In this article, we will learn more about python… Read More