How to replace date and time of a python datetime object

Learn to replace date and time of a python datetime object. This example will show you how to replace year, month, day, hour, minute, second, microsecond and time zone of a datetime object in python.

Read

Python tutorial pretty print JSON to console and file

Learn how to pretty print JSON file in Python. Read JSON and pretty print and write JSON data as pretty print to file.

Read

Java program to find the third largest number in an unsorted array

Java program to find the third largest number in an unsorted array. Our program will pass one unsorted array to a function, it will find the third largest number and return it.

Read

Python program to find out the third largest number in a list

Python program to find out the third largest number in a list. The program will iterate through a list and find out the third largest number. The time complexity of this program is O(n).

Read

What is a copy constructor in Java - Explanation with example

Learn about copy constructor in Java. Copy constructor works in a similar way to other constructors. The only difference is that it takes one object of the same class and then assign values to the variables of the class.

Read

How to remove yellow warning box in React Native

React native program to remove yellow warning box. Yellow warning box is used to show warnings in react native but using one line of code, we can disable it.

Read

React native example to create Text with different colors or multicolored Text

This react native tutorial will show you how to add different color substrings in a string with example. The example will use one Text with sub Text inside it with different colors.

Read

Python program to get random values from a list, dictionary, tuple or set

Python program to get random values from a list, dictionary, tuple or set with examples. We will learn how to find random elements by using the sample() method of random module.

Read

How to get the length of an array in C

How to get the length of an array in C. This post will show you how to get the array length by using the sizeof() method with example. Also learn why you shouldn’t use this method with functions.

Read

C++ program to remove the last character from a string in different ways

Different ways in C++ to remove the last character from a string. We will learn to do that by using substr(), size(), resize(), erase() and pop_back() methods with examples for each.

Read