- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 31994 Articles for Programming

Updated on 27-Mar-2023 10:08:52
In Golang, a Hashmap is a part of hash collection and it stores values in the form of key:value pairs. In this articlewe will store items in the hash collection using two different examples. In the very first example the indexing will be used to store items in the map and in the second example item struct will be used to store items. Syntax func make ([] type, size, capacity) The make function in go language is used to create an array/map it accepts the type of variable to be created, its size and capacity as arguments. Algorithm ... Read More 
Updated on 27-Mar-2023 10:06:02
In golang we can check whether a given value exist in hash collection or not by simply using okidiom function or we can even create an if-else user-defined function to do the same. Hashmap is basically a collection of values paired with their keys in hash collection. In this article we are going to look over two different example to understand how we can use the above two techniques to check the given value in hash collection. Algorithm Create a package main and declare fmt(format package) in the program where main produces executable codes and fmt helps in formatting ... Read More 
Updated on 27-Mar-2023 10:04:55
In golang, we can print the inverted hash collection using the inverted mapping method. Hashmap stored the data in pair of key:Value in hash collection and that reduces the execution time. In this article we are going to see two different example to understand how to create a golang program that will print an inverted hash collection. Syntax func make ([] type, size, capacity) The make function in go language is used to create an array/map it accepts the type of variable to be created, its size and capacity as arguments. func len(v Type) int The len() function ... Read More 
Updated on 27-Mar-2023 09:57:59
A hash collection is a data structure that contains key-value pairs in Go and enables quick lookups, additions, and deletions. The value that corresponds to the key can be accessed by hashing the key into an index. Hash collections in the form of maps have built-in support in Go. Here, a map is a reference type that is declared by using the map keyword, followed by the key type and value type in the format. In tis example, we will use two methods to get keys from a hash collection, in the first example we will use append method to ... Read More 
Updated on 27-Mar-2023 13:05:27
In golang, we can use hashmap to perform various operations like deleting, updating, and storing the values in the hash collection. In this article, we are going to understand get key based on a value from the hash collection using two different examples. In the first example, we will use an external function and iterate the map to get the key from the value, in the second example we will use a reverse map to get the key from the desired value. Algorithm Create a package main and declare fmt(format package) in the program where main produces executable codes ... Read More 
Updated on 27-Mar-2023 09:52:12
In Golang, we can use a simple indexing method and slicing method to add items to the hash collections. A hash function is used for retrieving and storing the data. In this article are going to see two different examples where we are going to use the above-mentioned methods to add items to a hash collection in go programming language. Syntax func make ([] type, size, capacity) The make function in go language is used to create an array/map it accepts the type of variable to be created, its size and capacity as arguments. Algorithm Import the required ... Read More 
Updated on 24-Mar-2023 15:17:39
Introduction Subplot creation is one of several tools for data visualization provided by the Python library Plotly. A big narrative can be broken up into multiple smaller ones using subplots. Sometimes, in order to give the main story greater depth and consistency, it may be essential to give each subplot its own title. Syntax Customizing subplot titles in plot grids is made possible through the usage of the subplot_titles parameter, which enables us to create unique titles for each plot. The make_subplots() function is essentially a factory method that allows us to establish a plot grid with a designated number ... Read More 
Updated on 24-Mar-2023 14:26:22
IntroductionBefore Google acquired Youtube, most of it was built using PHP. However, PHP at that time had a lot of restrictions for cross-platform applications, and generated a lot of clutter. After Google’s intervention, Youtube underwent an overhaul, with a major change in interface and security. In this article, we will go through the portions of Youtube where Python is used as the primary language. Reasons why Python is Used Reducing clutter Implementing newer features Frontend and API deployment Increased security Data visualization and analysis Easier maintenance Reason 1: Reducing ClutterAs Youtube was first established ... Read More 
Updated on 24-Mar-2023 14:23:02
What is Python Web Scraping? Python Web Scraping is an automatic method of collecting data from the web and its different websites, and performing further operations on the data. These may include storing the data in a database for future references, analyzing the data for business purposes, and providing a continuous stream of data from different sources in a single place. Some common methods of web scraping High performance Simple syntax Available existing frameworks Universality of Python Useful data representation Let us take a detailed look. Reason 1: High Performance Python scripts written for web scraping ... Read More 
Updated on 24-Mar-2023 14:19:42
Introduction In Python, the sorted() function is one of the most basic but useful methods to know while getting started with sorting. This function can be used to sort elements of an iterable object, like lists, strings etc. This function sorts both strings as well as numbers. By default it sorts in ascending order, although descending order sorts are also possible. Methods for using Sorted() function Sorting numbers using Sorted() Sorting lists, tuples, sets and dictionary Sorting strings Sorting inside lambda function Method 1: Sorting numbers using Sorted() The most basic implementation of the sorted() function is ... Read More Advertisements