Python set isdisjoint() explanation with an example

In this tutorial, we will learn about isdisjoint() method of python set with example. isdisjoint() method is used to find out if two sets are disjoint or not. Two sets are called disjoint if they don't have any common elements.

Read

Python set discard method explanation with an example

In this tutorial, we will learn about the discard method of python set. The discard method is used to remove a specific element from a set if it is available. The syntax of  the discard method is as below :.

Read

3 ways in Python to count the words and characters of a string

Learn how to count the words and characters of a string in Python in three different ways. We will learn how to do it by splitting the string, with list comprehension and by using a regular expression in Python.

Read

Java string compareToIgnoreCase and compareTo methods

Java String methods compareToIgnoreCase and compareTo can be used to compare two strings. In this tutorial, we will learn how these methods work with examples.

Read

Python program to check if an array is monotonic or not

In this python programming tutorial, we will learn how to find if an array is monotonic or not. An array is called monotonic if its adjacent numbers are either increasing or decreasing.

Read

Kotlin program to calculate simple interest with user input values

In this kotlin programming tutorial, we will learn how to calculate simple interest by using the user provided values.The user will enter the values and the program will calculate the simple interest.

Read

Java example program to create one ArrayList of ArrayList

In this quick Java programming tutorial, I will show you how to create one ArrayList of ArrayList, i.e. an ArrayList with ArrayList elements.  The program will take all inputs from the user. It will take the ArrayList inputs and then print out the result.

Read

Python gamma() function explanation with example

gamma() function is defined in Python Math module. It takes one argument and calculates the gamma value for that argument.The gamma function is defined as below :.

Read

Java compareToIgnoreCase method explanation with an example

compareToIgnoreCase is a public method in the String class of Java. We can use this method to compare two Strings lexicographically and ignoring the case.The provided string is normalized by using Character.toLowerCase(Character.toUpperCase(character)) on each character of the String.

Read

C program to print all combinations of three numbers

C program to print all combinations of three predefined numbers. The program will take the numbers as user input and print out all different combinations.

Read