
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 33676 Articles for Programming

582 Views
PyWebio is a python library that can be used to build web applications that require simpler UI. It provides several functions to create a simple web browser. Anyone can build simple web applications using PyWebio without prior knowledge of HTML and JavaScript. This tutorial will illustrate two methods to create a web to calculate BMI. Body mass index (BMI) measures body fat based on weight and height. It is commonly used to determine whether a person is underweight, normal, overweight, or obese. Example In this example, we define a ‘BMICalculator’ class that contains all the methods needed to calculate ... Read More

517 Views
NumPy is a Python library widely used for numerical computations and scientific data analysis. One of the most commonly used functions of NumPy is ‘numpy.arange()’, which creates a sequence of linearly increasing values with a given start, stop, and step size. In this tutorial, we'll examine how to use ‘numpy.arange()’ to produce a sequence of linearly increasing values. We will illustrate three examples of linearly arranged values with different steps. In this tutorial, we will learn to create a sequence of linearly increasing values with a NumPy arrange. We will be using NumPy, which is a famous python library. ... Read More

2K+ Views
There is built-in support for Unicode, including its rune type, in the statically-typed computer language Go. A Unicode code point is represented by a rune, which is the equivalent for the int32 type. There are various methods for determining if a rune is a letter or not in the Go language. In this article, we'll explore how to check if a rune is a letter or not in Go, and we'll provide examples of how to do that using different techniques. Why do we need to check If a Rune is a Letter? A rune in Go is a Unicode ... Read More

13K+ Views
Slices in Golang are dynamically-sized sequences that provide a more powerful interface than arrays. They are commonly used for storing collections of related data. Sometimes, we may want to delete elements from a slice. In this article, we will discuss how to delete elements in a slice in Golang. Deleting Elements in a Slice In Golang, we can delete elements from a slice using the built-in append() function. Here's how it works − ExampleHere's an example of how to use the deleteElement() function to delete an element from a slice −package main import "fmt" func deleteElement(slice []int, index ... Read More

6K+ Views
Golang is a statically-typed programming language that is popular among developers for its simplicity, concurrency support, and garbage collection. One of the unique features of Golang is the defer keyword, which is used to schedule a function call to be executed after the function completes. In this article, we will explore the defer keyword in Golang, its syntax, and use cases. What is the Defer Keyword? In Golang, the defer keyword is used to delay the execution of a function until the surrounding function completes. The deferred function calls are executed in Last-In-First-Out (LIFO) order. That means the most recently ... Read More

1K+ Views
In many applications, it is important to count the number of times a word appears in a string. This can be useful for generating word frequency counts, analyzing text data, and many other tasks. In this article, we will explore how to count the number of repeating words in a Golang string. Step 1: Convert the String to an Array of Words The first step in counting repeating words is to convert the string into an array of words. This can be done using the strings.Split() function, which splits a string into an array of substrings based on a separator. ... Read More

238 Views
In Golang, copying the sign of a given number is a common operation that may be needed in certain scenarios. For example, when performing arithmetic operations on numbers, it may be necessary to ensure that the sign of the result matches the sign of one of the operands. In this article, we will explore how to copy the sign of a given number in Golang, and discuss some use cases where this operation might be useful. Copying the Sign of a Given Number in Golang To copy the sign of a given number in Golang, we can use the math.Copysign() ... Read More

4K+ Views
In Golang, arrays are fixed-size data structures that hold a collection of values of the same type. In some cases, it may be necessary to copy an array to another array either by value or by reference. In this article, we will explore how to copy an array in Golang both by value and by reference. Copying an Array by Value in Golang In Golang, when you assign an array to another variable or pass it as a parameter to a function, it is copied by value. This means that any changes made to the copied array will not affect ... Read More

470 Views
Converting a string variable into Boolean, Integer, or Float type is a common requirement in Golang programming. Golang provides built-in functions that can be used for this purpose. In this article, we will explore how to convert a string variable into a Boolean, Integer, or Float type in Golang. Converting a String to a Boolean in Golang To convert a string variable into a Boolean type, we can use the strconv.ParseBool() function. The ParseBool() function returns two values - the Boolean value and an error. The following code demonstrates how to convert a string variable into a Boolean type − ... Read More

859 Views
Data compression is a process of reducing the size of data in order to save space or transmit data faster. Golang provides several libraries for compressing and decompressing data. In this article, we will discuss how to compress a file in Golang using the "compress/gzip" package. What is gzip Compression? gzip is a file format and a software application used for file compression and decompression. It is based on the DEFLATE algorithm, which is a combination of LZ77 and Huffman coding. gzip compresses a file into a smaller size, making it easier to store and transmit over the network. Compressing ... Read More