
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

2K+ Views
Strings are a built-in data type that represents sequences of characters in Golang. They are defined using double quotes (") and can contain any valid Unicode characters. In this article we will write a go language program to trim a string from the right side. We will achieve this both by using for loop and inbuilt library functions present in go language. Method 1: Using User-defined function In this method, the for loop is used to iterate over the string and then it compares the character of the string to the character from the right side to be removed. If ... Read More
3K+ Views
In Python, tuples are immutable, meaning that once they are created, their elements cannot be modified. However, there may be times when you need to add elements to a tuple. In this article, we will be discussing how to add elements to a tuple in Python. We will go over the syntax for adding elements to a tuple and will provide examples of how to do so. Python tuples are very similar to Python lists, in that you can perform all the various operations that can be performed on lists. The only difference is that tuples cannot be modified after ... Read More

4K+ Views
Strings are a built-in data type that represents sequences of characters in Golang. They are defined using double quotes (") and can contain any valid Unicode characters. In this article we will write a go language program to convert a string to uppercase. Here we will see the usage of both for loop and library functions to carry on the respective conversion. Method, 1: Using user-defined function In this method, we are going to create a user-defined function to convert a string into upper-case. The Steps to perform that are explained below − Algorithm Step 1 − First, we ... Read More

4K+ Views
Strings are a built-in data type that represents sequences of characters in Golang. They are defined using double quotes (") and can contain any valid Unicode characters. In this article we are going to learn about how to trim a string from both side using Go programming language. Method 1: By Using A For Loop In this method, the for loop is used to iterate over the string and then it compares the character of the string to the character of the string. If they are equal then remove that character from the string and print the remaining string. Algorithm ... Read More

3K+ Views
In the Go programming language, strings are a built-in data type that represents sequences of characters. They are defined using double quotes (") and can contain any valid Unicode characters. In this article, we are going to learn different techniques to pad a string with 0’s on the left side. Method 1: Using User-defined function In this method, we will achieve this by creating an external function. The function accepts the string to be padded along with the length as argument and returns the final string after adding zeroes to left of it. Algorithm Step 1 − First, we ... Read More
512 Views
In Python, a linked list is a linear data structure that consists of a chain of nodes, where each node contains a value and a reference to the next node in the chain. In this article, we will be discussing how to add an element to the first and last position of a linked list in Python. Linked List in Python A linked list is a referential data structure that holds a group of elements. it is similar in terms of an array but while the data is stored in contiguous memory location in an array, in linked ... Read More
223 Views
In this article, we will be discussing how to sort a tuple by values in Python. A tuple is a data structure that is similar to a list, but it is immutable, meaning that once it is created, we cannot change the values of the elements within it. Example Following is an example to create a tuple – tple = ("Hello", "world", "hi") print(tple) Output (“Hello”, “world”, “hi”) Ordered, immutable triple items can have multiple values. An index of [0] is assigned to the first item in a triple, [1] to the second, and so on. When we ... Read More

4K+ Views
In the Go programming language, strings are a built-in data type that represents sequences of characters. They are defined using double quotes (") and can contain any valid Unicode characters. A substring is a portion of a string that contains a sequence of characters from the original string. A substring can be obtained in Go by using the slicing syntax on a string value. In this article we are going to learn different methods to get the index of a substring in a string using golang programming. Method 1: Using a For Loop In this method, the function that we ... Read More
5K+ Views
In this article, we will be discussing how to remove duplicate elements from a dictionary in Python. A dictionary is a data structure that stores key-value pairs, and it is an essential data type to understand when learning Python. However, there may be cases where we have a dictionary with duplicate elements, and we want to remove them to clean up the data. We can declare a dictionary in the following way − thisdict = { "brand": "Ford" , "model": "Mustang" , "year": 1964 } However, a dictionary can contain duplicate value for different keys, but we might ... Read More
2K+ Views
In Python, tuples are a useful data type for storing a collection of items. Sometimes, it may be necessary to print the keys and values of a tuple in order to understand or debug your code. In this article, we will be discussing, how to print the keys and values of a tuple in Python. We will go over the syntax for accessing these elements and will provide examples of how to do so. First, we will learn about what is tuple and what we mean by the keys and values of the tuple. What does a Python tuple mean? ... Read More