
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

397 Views
Matrices are widely used in various fields, including mathematics, physics, and computer science. In some situations, we need to group elements of the matrix based on certain criteria. We can group elements of the matrix by row, column, values, condition, etc. In this article, we will understand how we can group elements of the matrix using Python. Creating a Matrix Before diving into the grouping methods, we can start by creating a matrix in Python. We can use the NumPy library to work with matrices efficiently. Here's how we can create a matrix using NumPy:Example The below code creates a ... Read More

319 Views
In Python, every program has a symbol table that contains the information about its names (variables, functions, and classes) defined in the program. The global() function allows us to access and manipulate the global symbol table, providing valuable information about the current global variables in a program. In this article, we will understand how these globals() function works and what we can do with this function in Python. Overview of globals() function In Python, each program has a symbol table that contains information about the names (variables, functions, classes, etc.) defined in the program. The symbol table is represented by ... Read More

1K+ Views
In Python, we can sum the numbers present in a string list using various methods like using Regular Expressions, using isdigit() and List Comprehension, using Splitting and Joining etc. When working with lists containing strings in Python, it is common to come across situations where you need to extract and sum the numerical values from those strings. This can be particularly useful in situations such as processing data from text files, log files, or web scraping. In this article, we will understand these methods using different example and algorithms. Algorithm A general algorithm to find the sum of numbers ... Read More

12K+ Views
Text file analysis is a fundamental task in various data processing and natural language processing applications. Python is a versatile and powerful programming language that provides numerous built−in features and libraries to facilitate such tasks efficiently. In this article, we will explore how to count the number of characters, words, spaces, and lines in a text file using Python. Method 1:Brute Force method In this method, we will develop our own logic in a brute−force manner and take a text file as input and count the number of characters, words, spaces, and lines in the file. In this method, we ... Read More

2K+ Views
In Python, we can get the indices of uppercase characters in a given string using methods like using List Comprehension, using a For Loop, using Regular Expressions etc. Finding the indices of Uppercase characters can be useful in text analysis and manipulation. In this article, we will explore different methods to obtain the indices of uppercase characters in a given string. Method 1:Using List Comprehension Using list comprehension we can iterate through the characters of a string, check if they are uppercase using the isupper() method, and stores their indices in a list. It provides a concise and ... Read More

3K+ Views
In COBOL programming, the COMP and COMP-3 (Pressed Decimal) information representation designs play significant parts in taking care of numeric information. COMP may be a twofold organize that speaks to information in its crude double shape, whereas COMP-3 employments pressed decimal representation with sign and zone digits. The key contrasts between the two lie in their capacity strategies, measure contemplations, utilization scenarios, run confinements, transformation prerequisites, execution suggestions, and meaningfulness What is COMP? COMP may be an information representation arrangement utilized in COBOL (Common Business-Oriented Language) programming. COMP stands for "Computational, " and it is an unsigned double organize that ... Read More

747 Views
The world of technology and programming has developed a variety of languages and frameworks, each with its functionality and purpose. This article examines the differences between these two great technologies. In this article, we will the concept of CORBA and DCOM and its difference. CORBA, which has a strong presence in the business field, and DCOM, Microsoft's technology, each have different characteristics. Understanding these differences is important for developers and businesses trying to make informed decisions about their tech stack. What is CORBA? CORBA (Common Object Request Broker Architecture) is a middleware innovation that empowers interoperability and communication between disseminated ... Read More

4K+ Views
In the Operating System, the requests from the input or output of the programs or applications are handled by Disk scheduling algorithms. The System receives countless numbers of requests from different programs and only one request can be processed at a time by the system and all other requests has to wait in queue. The major work of disk scheduling is to increase the performance of the system by reducing seek time, rotating latency, and transfer time. For these processes, different algorithms are used and one among them is SCAN (Elevator). Scan Disk Scheduling Algorithm The Scan Disk Scheduling algorithm ... Read More

730 Views
In the OSI (Open Source Interconnection) model, the resource reservation model comes under the fourth layer which is the transport layer protocol. This protocol is particularly used for the purpose of reserving network resources. In RSVP, the resources are associated and maintained by the receiver so it is also known as a receiver-oriented protocol. The Real-time system means the work that has to be delivered to the client within a specific time. In this article, two real-time systems are explained using the resource reservation protocol. Resource Reservation Protocol (RSVP) Definition In networking, Resource Reservation Protocol is used as it provides ... Read More

298 Views
A routine is said to be a computer program with a set of instructions that is used for the execution of the system program. They allocate or deallocate the memory used after completion of its execution as per instructions given as routine-routine or even functions. The process is termed as the programs that are currently in execution state and utilizes the resources of CPU. Each process undergoes different states like active, new, ready, block, and wait, suspended during its life cycle. Multiprogramming environment is done to the processes which require it, where each process is classified into preemption and non-preemption ... Read More