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
Programming Articles - Page 427 of 3366
5K+ Views
MATLAB could be a prevalent programming language utilized in designing and logical areas, but Python is rapidly becoming a go-to language for numerous programmers due to its adaptability and flexibility. In case you are searching to change over MATLAB code into Python code, it can seem like a horrible challenge to start with. In any case, with the right facts and approach, you'll make the move a whole lot easier. Here are a few steps to assist you to change over your MATLAB code into Python − Step 1: Get Familiar with Python Syntax Python and MATLAB have one-of-a-kind syntaxes, ... Read More
1K+ Views
In today's world, WhatsApp has gotten to be a basic portion of our everyday lives. From casual discussions to vital commerce talks, we depend intensely on WhatsApp to communicate with our companions, family, and colleagues. In any case, some of the time we can be too busy to reply to messages in a convenient way. To address this issue, we can use Python to make a program that will naturally react to WhatsApp messages. In this article, we'll investigate the steps to make such a program. Step 1: Installing Necessary Libraries Before we start, we have to introduce the ... Read More
809 Views
Python is an open-source programming dialect broadly utilized for different purposes counting web advancement, information investigation, manufactured insights, machine learning, and more. One of Python's primary qualities is its measured engineering, which permits engineers to effectively expand its usefulness by bringing in pre-written code modules. But, how many default Python modules are accessible? To go ahead with the article, we should have a glimpse of the module in Python. A module is a file containing definitions and statements of Python. Modules can be called or imported into other modules and can contain classes, functions, and variables that can be used ... Read More
292 Views
In this article, we will write a Go language programs to check a hash collection is empty or not. A hash collection is a data structure that contains key-value pairs in Go (Golang) 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. Syntax func make ... Read More
366 Views
In Golang we can use delete keyword or empy map to remove all the elements from hash collection. Hashmap is a data structure from hash collection. It is an implementation of hash table which takes O(1) constant time to execute. In this program we will remove all items from hash collection using two methods. 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 range(variable) The range function is used to iterate over ... Read More
403 Views
In Golang we can use various internal functions or packages like len() function or reflect package, to get the size of the hash collection. A Hash collection contains a hashmap which is generally used to create key:value pairs and on the basis of that it shortens the execution time. In this program, we have used two examples to get the size of 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 ... Read More
285 Views
In this article, we will write Golang programs to search an item in the hash collection. A hashmap is part of hash collections. Here we are building a hashmap as set of key-alue pairs using Golang’s map which is constructed using map literal. We will execute this program using two examples. Syntax func range(variable) The range function is used to iterate over any data type. To use this we first have to write the range keyword followed by the data type to which we want to iterate and as a result the loop will iterate till the last element ... Read More
375 Views
In golang we can use hashmap and key functions to iterate hash collection. Hashmap is said to be one of the hash collections. In the hashmap the data is stored in key value pairs as we did below. In this program we will use three methods to iterate the hashmap and print its values. 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 append(slice, element_1, element_2…, element_N) []T The append function is ... Read More
508 Views
In this Go language article, we will write proCurrent weekday implies the current day in the week which can be obtained using numerous methods. In this program we will use three examples to get the current weekday for which time package will be imported in the program, it helps in viewing the time. Syntax func Now() Time The Now() function is defined in time package. this function generates the current local time. To use this function, we have to first import the time package in our program. time.Format() This function belongs to the time package. It is used ... Read More
6K+ Views
Golang has internal functions like Now() Time, and other Time functions that can be used for getting the current time zone. Current time zone in Go is a time zone where people reside in and see the same standard time. In a country like India IST is observed throughout the nation. In this program we will discuss how to obtain current time zone using two examples. Syntax func Now() Time The Now() function is defined in time package. this function generates the current local time. To use this function, we have to first import the time package in ... Read More