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
Server Side Programming Articles - Page 247 of 2650
274 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
278 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
4K+ Views
In Python, some special methods have names that start and end with double underscores. These are called dunder methods. One such method is __exit__, which is used in context managers for cleanup tasks. Context Manager in Python Context Mangers helps to manage resources such as files, database connections, or network links. It sets up a temporary environment to run a block of code. When the block ends, Python closes the file or disconnects the connection automatically. This prevents unnecessary resource consumption when we leave a file open or keep a connection (such as, network, database) active. Python runs context managers ... Read More
994 Views
Understanding Closures in Python In Python, functions are treated as first-class citizens. This means you can assign them to variables, pass them as arguments to other functions, or even return them from other functions. A closure is a special kind of inner function that remembers variables from its enclosing (outer) function’s scope, even after the outer function has finished running. This allows the inner function to retain access to those variables and behave as if the outer scope still exists. To form a closure in Python, it is necessary to meet the following two conditions − ... Read More
662 Views
Python __call__ Method In Python, everything is treated as an object, including integers, strings, classes, and even functions. It provides a special method named __call__ that allows an instance of a class (i.e. object) to behave like a function (i.e. we can call/invoke it). When we define the __call__ method inside a class, we can call its instance (object) using parentheses, just like a regular function. Syntax Following is the syntax to use the __call__ method inside a class − class MyClass: def __call__(self, *args, **kwargs): # Implementation of the method ... Read More
199 Views
Introduction If we want to rename any file in Linux, we use “mv” command. But mv command can only rename one file at a time, it can not rename multiple files at one time in terminal. If we want to rename multiples files then we have to use mv command in different way . Also there are other commands available like “rename” , “mmv”, “renameutils” etc. Though some of these commands are not installed default in Linux , we need to install them separately. In this artile, let us understand each command with some example. Approach 1: Using “mv” command ... Read More
1K+ Views
Golang, also known as Go, is a popular programming language that is known for its simplicity, efficiency, and performance. Slices are an important data structure in Golang that allows us to work with a sequence of elements of the same type. In this article, we'll discuss how to pass a slice to a function in Golang, and provide a step-by-step guide on how to achieve this task. What is a Slice in Golang? A slice in Golang is a dynamic array, which means it can grow or shrink as needed. It's a powerful data structure that allows us to work ... Read More
652 Views
Golang, also known as Go, is a powerful programming language that offers efficient and scalable solutions for building modern software. One of the essential features of Golang is the ability to handle Unicode characters, which makes it possible to work with various languages and scripts. In this article, we'll discuss how to map a rune to uppercase in Golang, and provide a step-by-step guide on how to achieve this task. What is a Rune in Golang? A rune in Golang is a Unicode code point, which represents a single character. In Golang, the type for a rune is rune, and ... Read More
300 Views
If you're working with runes in Golang and need to convert them to title case, it can be a bit tricky. However, with the right tools and techniques, it's certainly achievable. In this article, we'll explore how to map a rune to title case in Golang, providing you with a step-by-step guide to help you achieve your goals. Understanding Runes in Golang Before we dive into how to map a rune to title case in Golang, let's take a moment to understand what runes are in this programming language. In Golang, a rune is a Unicode code point, which can ... Read More