Programming Articles - Page 583 of 3363

Kotlin Program to Print a String

AmitDiwan
Updated on 13-Oct-2022 12:22:15

677 Views

In this article, we will understand how to print a string. String is a datatype that contains one or more characters and is enclosed in double quotes(“ ”). Below is a demonstration of the same Suppose our input is − Hello my name is John! The desired output would be The string is: Hello my name is John! Algorithm Step 1 − START Step 2 − Define a string variable Step 3 − Display the string on the console Step 4 − STOP Example 1 In this example, we will print a string using the print() ... Read More

Kotlin Program to Print an Integer

AmitDiwan
Updated on 13-Oct-2022 12:19:29

699 Views

In this article, we will understand how to print an integer. Integer is a primitive data type that contains numbers up to 32 bits. Below is a demonstration of the same − Suppose our input is − 45 The desired output would be − The integer is: 45 Algorithm Step 1 − START Step 2 − Define the integer value in a variable Step 3 − Display it on the console Step 4 − STOP Example 1 In this example, we will simply print an integer using the print() method. First, declare an integer variable, which ... Read More

Hello World program in Kotlin

AmitDiwan
Updated on 13-Oct-2022 12:15:46

530 Views

In this article, we will understand how to print hello world in Kotlin. Hello world is stored as a string format and is printed using ‘print()’ function. Input Suppose our input is Hello World Output The expected out should be Hello World Algorithm Step 1 − START Step 2 − Define a string variable Step 3 − Display the string on the console Step 4 − STOP Example 1 In this example, we will simply display a string “Hello World” using the print() method in Kotlin − fun main() { val inputStr = ... Read More

Top 10 Reasons to Learn Python for Big Data

Vikram Chiluka
Updated on 12-Oct-2022 12:14:34

423 Views

What is Big Data? Big Data is a massive collection of data that is growing exponentially over time. It is a data set that is so large and complex that traditional data management tools cannot store or process it efficiently. Big data is a type of data that is extremely large in size. Python is the ideal programming language for Big Data due to its ease of use and statistical analysis capabilities. Python is a rapidly growing programming language, and a combination of Python and Big Data is the most popular choice among developers due to its low coding requirements ... Read More

Python libraries to be used for visualization

Vikram Chiluka
Updated on 12-Oct-2022 12:12:05

547 Views

In this article, we will show you various Python libraries for visualization and their features. In today's day and age, viewing the results of our analysis and inferring results is often more convenient than going through textual data or CSV files to understand the results. As a result, data visualization is an easy way to find answers to complex questions. It also allows users to express their results more effectively than tables do. Data Visualization in Python Python provides several plotting libraries, including Matplotlib, Seaborn, and many other data visualization packages, each with unique features for creating informative, customized, and ... Read More

How to convert a dictionary to a matrix or nArray in Python?

Vikram Chiluka
Updated on 12-Oct-2022 12:09:29

18K+ Views

In this article, we will show you how to convert a dictionary to a matrix or a NumPy array using the array() function of the NumPy library in python. It is sometimes necessary to convert a dictionary in Python into a NumPy array, and Python provides an efficient way of doing so. Converting a dictionary to a NumPy array gives an array containing the key-value pairs in the dictionary. In this section, we will look at examples of converting various types of dictionaries to a NumPy array in Python Converting a Dictionary to a Numpy Array Converting a Nested ... Read More

Explain how Python data analysis libraries are used?

Vikram Chiluka
Updated on 12-Oct-2022 12:01:53

989 Views

Python is a computer programming language that is frequently used to create websites and software, automate tasks, and analyze data. Data Analysis Data analysis is defined as the process of cleaning, transforming, and modeling data in order to find useful information for business decisions. The goal of data analysis is to extract useful information from data and make decisions based on that information. In this article, we will explain how python data analysis libraries are used NumPy - Fundamental Scientific Computing NumPy is an abbreviation for Numerical Python. The n-dimensional array is NumPy's most powerful feature. This library also includes ... Read More

Swift Program to Find Minimum Set Element Using Library Function

Ankita Saini
Updated on 12-Oct-2022 07:45:33

1K+ Views

This tutorial will discuss how to write swift program to find minimum set element using library function. Set is a primary collection type in Swift. It is an unordered collection which stores unique values of same data type. You are not allowed to store different type of values in the same set. A set can be mutable or immutable. To find the smallest set element Swift provide an in-built function named min(). This function return minimum element from the given set. It will return nil if the given set is empty. Here the returned object of type Optional . So ... Read More

Haskell program to multiply two floating point numbers

Akhil Sharma
Updated on 19-Jan-2023 15:08:46

1K+ Views

This tutorial will help us in multiplying two floating point numbers. The multiplication is simply an arithmetic mathematical operation. In Haskell, floating point numbers are represented as values of the Float or Double type. You can use the (*) operator or the multiply() function to multiply two floating point numbers in Haskell. Alternatively, we can also use (/) operator to multiply two floating point numbers by dividing 1 by the reciprocal of the second number. Method 1: Using Multiply Function This method uses multiply() function to multiply two floating point numbers. The function is defined before the main function, as ... Read More

Golang Program to convert a number into a rational number

Akhil Sharma
Updated on 09-Dec-2022 05:54:57

563 Views

In this tutorial we will see how to convert a number into a rational number using Go programming language. A rational number is a type of real number, which is in the form of p/q where q is not equal to zero. Any fraction with non-zero denominators is a rational number. Some of the examples of rational numbers are 1/2, 1/5, 3/4, and so on. Syntax funcNewRat(a, b int64) *Rat NewRat creates a new Rat with numerator a and denominator b Syntax for Scanln: Func Scanln(a…interface{}) (n int, err error) Package math/big implements arbitrary-precision arithmetic (big numbers). ... Read More

Advertisements