python

Python numpy empty_like method example

Python numpy empty_like method example. empty_like method returns a new array with same shape and type as the given array.

Read
python

Python numpy interp method example

Python numpy interp method example to calculate one-dimensional piecewise linear interpolant and learn how to plot data on graph.

Read
C++

Implement bubble sort in C++

C++ program to implement bubble sort. Bubble sort is a sorting algorithm we can use to sort a list. It is a comparison algorithm to sort items.

Read
typescript

How to create an array of objects in TypeScript

How to create an array of objects in TypeScript. Learn 5 different examples of array object creation in TypeScript

Read
python

5 different ways to print multiple values in Python

Python program to print multiple values. We will learn 5 different ways to print multiple values in python.

Read
python

Python program to convert millimeters to inches

Python program to convert millimeters to inches. The program will take the millimeters value as input from the user and convert it to inches.

Read
python

Python program to convert inches to millimeters

Python program to convert inches to millimeters. The program will take the inches as input from the user and convert it to millimeters and print that on console.

Read
python

Python program to check if a number is prime or not

How to check if a number is prime or not in python. A number is called prime if its factors are 1 and the number itself.

Read
python

Python program to check if a file exists

Python program to check if a file exists or not. We will use os.path.exists method and pathlib module to check that.

Read
python

Python program to replace all negative numbers with zero in a list

Python program to replace all negative numbers with zero in a list. We will learn how to do that by using a loop and using a recursive method.

Read