
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 189 Articles

Sarika Singh
427 Views
When you write tests in Python, it is important to make sure that your function raises the correct exception for invalid input or unexpected conditions. This helps to confirm that your code handles errors properly. You can test exceptions using the following ways in python − Using the try-except ... Read More

Sarika Singh
4K+ Views
Camel case and snake case are ways of writing words together when we are programming. In camel case, we write words together without spaces and we start each new word with a capital letter except for the first word. For example, if we want to write a variable name for ... Read More

Sarika Singh
734 Views
In Python, when you pass arguments to a function, they are passed by object reference. This means the function gets a reference (or pointer) to the actual object, not a copy of it. However, how this reference affects the object depends on whether the object is mutable or immutable. ... Read More

Sarika Singh
52K+ Views
In Python, you can pass optional parameters to functions, allowing you to call a function with fewer arguments than specified. Optional parameters are useful for providing default values when certain arguments are not provided. Python provides different ways to define optional parameters, including default values, variable-length argument lists, and keyword ... Read More

Sarika Singh
20K+ Views
As the name implies, an argument with a variable length can take on a variety of values. You define a variable argument using a '*', for example *args, to show that the function can take a variable number of arguments. Observations on Python's variable-length arguments are as follows - ... Read More

Sarika Singh
7K+ Views
In Python, everything is an object. And every object has attributes and methods, or functions. Attributes are described by data variables, for example like name, age, height, etc.Properties Properties are a special kind of attributes that have getter, setter, and delete methods like __get__, __set__, and __delete__ methods. A property ... Read More

Sarika Singh
607 Views
In Python, documenting your functions is an important step that helps others understand what your code does, what inputs it expects, and what it returns. Python provides a built-in way to write documentation using docstrings. By producing good documentation, you can make your code more readable and usable in larger ... Read More

Sarika Singh
2K+ Views
Before we understand how to catch a Python exception in a list comprehension, let us first learn what a list comprehension is.Python List Comprehension List comprehension is a statement that allows you to create a list and execute a for loop, all in a single sentence.This also allows the lists ... Read More

Sarika Singh
14K+ Views
The looping technique in Python transforms complex problems into simple ones. It allows us to change the flow of the program so that instead of writing the same code over and over, we can repeat it a limited number of times until a certain condition is satisfied. For example, ... Read More

Sarika Singh
4K+ Views
The purpose of a function is to perform a specific task using code blocks. In programming, functions save time by eliminating unnecessary and excessive copying and pasting of code. Hence, a function will be of great use if there is a common action that needs to be performed in different ... Read More