
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
AmitDiwan has Published 10744 Articles

AmitDiwan
867 Views
Writing a memory-efficient and a code that executes quickly is what every developer wants while working on any programming language. In Python, memory allocation and deallocation is not manual, since Python has a Garbage Collector. Now, what is a Garbage Collector. Garbage Collector Garbage Collection is how the memory is ... Read More

AmitDiwan
2K+ Views
Unfortunately, you cannot modify a string in place because strings are immutable. Simply create a new string from the several parts you want to gather it from. Though, if you still need an object with the ability to modify in-place unicode data, you should for The io.StringIO object The ... Read More

AmitDiwan
2K+ Views
What is a float? The floating-point are also called floats, they represent real numbers and are written with a decimal point dividing the integer and fractional parts. Floats may also be in scientific notation, with E or e indicating the power of 10 (2.5e2 = 2.5 x 102 = 250). ... Read More

AmitDiwan
1K+ Views
No, there’s no way to discover the name of an object in Python. The reason is that the objects don’t really have names. Let’s say we have the following code. Herein, we cannot find the actual instance name. Since both ob1 and ob2 are bound to the same value, we ... Read More

AmitDiwan
6K+ Views
The gc or weakref module is used to get a list of all instances of a given class. First, we will install the gc module using pip − pip install gc To use the gc module, use the import − import gc Get the instances of a class ... Read More

AmitDiwan
7K+ Views
Python Functions are generally called using their name. However, you can also use strings to call functions. For that, use the locals() and globals(). Call functions using strings Example In this example, we will learn how to call two functions using strings − def demo1(): print('Demo Function ... Read More

AmitDiwan
10K+ Views
The Hexadecimal and Octal are part of Numeric Types in Python. Let’s see how to specify them one by one. For hexadecimal type, add a preceding 0x. For example − 0x11 For Octal type (base 8), add a preceding 0 (zero). For example − 0O20 Hexadecimal Integers in ... Read More

AmitDiwan
2K+ Views
A function in Python with another function as an argument or returns a function as an output is called the High order function. Let’s see the propertie − The function can be stored in a variable. The function can be passed as a parameter to another function. The high ... Read More

AmitDiwan
2K+ Views
Scope of Variables in Python are of two types: local and global. Scope is defined as the accessibility of a variable in a region. Let us first understand both local and global scope before moving towards the rules. Local Scope Example This defines the local scope of a variable i.e. ... Read More

AmitDiwan
942 Views
To convert a string to a number, there are various ways. Let’s see them one by one. Convert a string to number using int() Example In this example, we will convert a string to a number using the int() method − # String to be converted myStr = "200" ... Read More