
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

7K+ Views
In Python, there are mainly two searching algorithms that are majorly used. Out of those, the first one is Linear Search and the second one is Binary Search. These two techniques are majorly used in order to search an element from the given array or from the given list also. While searching an element, there are two methodologies that can be followed in any kind of algorithm. One of those is recursive approach and the other is iterative approach. Let us discuss both algorithms in both approaches and solve similar problems. Linear Search The Linear Search technique is also known ... Read More

7K+ Views
There are three different ways in order to delete or remove the element. Let us discuss some of those methods and keywords that are used to remove the last element from an array one after another in a row. Using Delete() Method of the Numpy Module This module can be used in order to delete an element of an array when an index is clearly specified. This operation can be done by the delete() method that belongs to the module numpy. But, in order to use that delete method, the array should be created in the form ... Read More

2K+ Views
In order to remove the first element of the array, the index that must be considered is 0 as the index of the first element in any array is always 0. As like removing the last element from an array, removing the first element from the array can be processed using the same techniques. Let us apply those techniques in the deletion of first element of the array. We shall discuss the methods and keywords that are used to remove the first element from an array one after another in a row now. Using the pop() Method The method pop() ... Read More

2K+ Views
An array is a collection of elements of same data type, and each element in the array is identified by an index value. It is a simplest data structure where each data element can be accessed directly by only using its index number. Arrays in Python Python does not have a specific data structure to represent arrays. Here, we can use List an array. [6, 4, 1, 5, 9] 0 1 2 3 4 The indexing in python starts from 0. In the above block the integers 6, 4, 1, 5, ... Read More

5K+ Views
An array is a collection of elements of homogeneous datatypes stored in contiguous memory locations. Python does not provide support for the built-in arrays. If you need to work with arrays you need to import the "array" module or, use the arrays in numpy library.We can use lists instead of arrays in Python. However, we cannot restrict the elements of a list to be of the same data type. The given task is to remove all the occurrences of an element in an array/list. i, e. we to remove the specified element including the duplicate elements. Let us understand how this ... Read More

780 Views
Boundary Elements of a Matrix The elements that are not surrounded by any other elements that belong to the same matrix are known as Boundary elements. Using this phenomena, we can build a program. Let us consider an Input output scenario and then construct a program. Input Output Scenario Consider a matrix ( square matrix ) The Boundary elements are the elements except the middle elements of the matrix. The middle element(s) of the matrix is 5 and there are no other middle elements except 5. So, the Boundary elements are 9, 8, 7, 6, ... Read More

2K+ Views
Hidden Markov Models (HMMs) are powerful types of statistical models used for modeling sequential data. They have found purposes in numerous fields, such as speech recognition, natural language processing, finance, and bioinformatics. Python, being a versatile programming language, provides a range of libraries for enforcing HMMs. In this article, we will discover unique Python libraries for HMMs, and evaluate their features, performance, and ease of use, sooner or later revealing the great choice for your needs. A Primer on Hidden Markov Models Before diving into the libraries, let's briefly recap the concept of HMMs. An HMM is a probabilistic model ... Read More

252 Views
Python's demand as a programming language has driven it to a riches of assets for learning its different angles. Whereas beginners have various instructional exercises and guides to assist them get beginning, progressed learners regularly battle to discover assets that cater to their particular needs. In this article, we'll investigate the extent of assets pointed at taking your Python abilities to another level, covering points such as advanced language features, plan designs, execution optimization, and more. Advanced Python Language Features To get the most out of Python, it’s important to master its advanced language features. These features enable efficient, readable, ... Read More

257 Views
Python is an adaptable programming language known for its straightforwardness and meaningfulness, making it a well-known choice for a wide run of applications. In this article, we’ll explore seven curiously Python programs that outline the language’s control and can propel you to create your claim one-of-a-kind wanders. These programs cover different ranges of counting machine learning, web development, data visualization, and more. DeepArt: Neural Style Transfer with Python DeepArt may be an interesting application that combines craftsmanship and innovation utilizing neural style exchange. This strategy permits you to apply the fashion of one picture (such as a portrayal) to the ... Read More

4K+ Views
Understanding the __file__ Special Variable The __file__ variable in Python is a special attribute that stores the path to the current script or module from which it is accessed. It is automatically set by the Python interpreter when a script is executed or a module is imported. This variable allows you to determine the exact location of the current file, irrespective of where the Python interpreter is run. The value of the __file__ can be either a relative path or an absolute path, depending on how the script is executed. The __file__ variable contains the relative path to the script ... Read More