C program to check if a number is palindrome or not

A number is called a palindromic number if it remains same even if the digits are reversed. For example, 1123 is not a palindrome number but 12321 is a palindrome.

Read

React Native: How to detect text change and edit ends in TextInput

TextInput component is used in React native for entering text. In this tutorial, we will learn how to use a TextInput component to listen to the entered text and when the editing ends.

Read

How to show an alert in React Native

Showing an Alert message in React-Native is easier than you think. If you want to show a custom alert to the user, then you need to create a different component, but for default alert, we can use one API known as Alert.

Read

Typechecking in react js using propTypes

Typechecking means validation of a specific type before using it. For example, if one component of your application is showing one string line, then typechecking will verify if the value we are trying to show is actually a valid string or not. If any other types of values like a number is passed, it will show one warning message on the console.

Read

pretty() method in MongoDB

pretty() method is used mainly to display the result in a more easy-to-read format. In this tutorial, I will show you how to use pretty() method and how the data looks with and without using pretty() and how the data looks like. The syntax of pretty() method is as below :.

Read

Python translate method

In this tutorial, we will learn how to replace multiple characters of a string with a different set of string. This is also known as the translation of a string. Python provides one inbuilt method to do the translation. I will show you one example below to implement this operation in python.

Read

Python raw strings : Explanation with examples

Python raw strings are used to treat backslash as a literal character. Using raw strings, we can print '\n', '\t' etc. as any other characters. In this post, we will learn what is python raw string with different examples.

Read

Convert an integer or float to hex in Python

Python program to convert an integer or float to hexadecimal. We can use the hex method or float.hex method to convert an int or float value to hex value.

Read

5 different ways to sort a list in ascending/descending order in Kotlin

Learn to sort a list of items in Kotlin in both ascending and descending orders. We will also learn how to sort a list of objects with a comparator and with a selector.

Read

How to use fold, foldIndexed, foldRight and foldRightIndexed in Kotlin

If you want to do certain operation on the elements of a list serially, you can use fold(). This method takes one initial value and one operation to perform on the elements serially starting from the provided initial value. fold() performs the operation from left to right. If you want to do it from right to left, you can use foldRight().

Read