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
Sarika Singh has Published 192 Articles
Sarika Singh
83K+ Views
This article explains what the Python code expression if __name__ == '__main__' means. A Python programme uses the condition if __name__ == '__main__' to only run the code inside the if statement when the program is run directly by the Python interpreter. The code inside the if statement is not ... Read More
Sarika Singh
135K+ Views
Tuples in Python are immutable, meaning that once they are created, their contents cannot be changed. However, there are situations when we want to change the existing tuple, in which case we must make a new tuple using only the changed elements from the original tuple. Following is the example ... Read More
Sarika Singh
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 ... Read More
Sarika Singh
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) ... Read More
Sarika Singh
661 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 ... Read More
Sarika Singh
500 Views
This article teaches you how to write a Python program to find the size of the largest subset of anagram words Every character of the rearranged string or number must also be a component of another string or number in order for the condition of an anagram to exist. To ... Read More
Sarika Singh
3K+ Views
This article will teach you how to determine whether a string contains a URL or not. In Python, strings are collections of bytes that represent Unicode characters. You can use single or double quotes and everything enclosed in them is considered as a string. When given a string, we will ... Read More
Sarika Singh
570 Views
When we define a function in a python program, the purpose is to execute the code again and again by supplying different values to the function's arguments. One challenge in this design is, what if we are not sure about the number of arguments we want to process each time ... Read More
Sarika Singh
3K+ Views
The return statement in python is an extremely useful statement used to return the flow of program from the function to the function caller. The keyword return is used to write the return statement. Since everything in python is an object the return value can be any object such as ... Read More
Sarika Singh
1K+ Views
The elements in the contiguous memory address are contained in the linear data structure known as an array. At these places, it primarily groups components of the same data type. Given an array of integers. The array is to be divided into two halves, 0s and 1s, according to ... Read More