- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 11365 Articles
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
475 Views
CPython is the default and most widely used interpreter or implementation of Python. It is the original Python version and understands the code written using python specifications. Python is quite serious about cleaning up memory on exit and does try to destroy every single object, but unfortunately objects referenced from ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
1K+ Views
Yes, Python Lambda Expressions cannot contain statements. Before deep diving the reason, let us understand what is a Lambda, its expressions, and statements. The Lambda expressions allow defining anonymous functions. A lambda function is an anonymous function i.e. a function without a name. Let us see the syntax − lambda ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
4K+ Views
All parameters (arguments) in the Python language are passed by reference. It means if you change what a parameter refers to within a function, the change also reflects back in the calling function. Achieve this in the following ways − Return a Tuple of the Results Example In this example, ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
187 Views
Threads are sometimes called light-weight processes and they do not require much memory overhead; they are cheaper than processes. A thread has a beginning, an execution sequence, and a conclusion. There are two modules which support the usage of threads in Python3 − _thread − Deprecated in Python ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
543 Views
Operator precedence determines the grouping of terms in an expression and decides how an expression is evaluated. The comma is not an operator in Python; therefore, the precedence concept doesn’t work here. Before moving further, let us first see the precedence of operators in Python from highest precedence to lowest. ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
2K+ Views
The __del__ is magic method in Python. The magic methods that allow us to do some pretty neat tricks in object-oriented programming. They are also called Dunder methods. These methods are identified by two underscores (__) used as prefix and suffix. In Python, we create an oject using the __new__() ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
207 Views
For this, at first understand what is __new__() method in Python. When subclassing an immutable type, override the __new__() method instead of the __init__() method. The __new__ method gets called when an object is created whereas the __init__ method will be called to initialize the object. These are magic methods. ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
2K+ Views
The two tools for caching methods are functools.cached_property() and functools.lru_cache(). Both the module is part of the functools module. The functools module is for higher-order functions: functions that act on or return other functions. Let us first install and import the functools module − Install functools To install the functools ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
147 Views
The id() method in Python return the identity of an object i.e. a unique id for the specified object. Now, you would be wondering, what is this id(). The id here is the object's memory address, an integer guaranteed to be unique and constant for this object during its lifetime. ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
56 Views
Example The is operator is an identity operator in Python. It tests for object identity. Let us see an example − x = ["Paul", "Mark"] y = ["Paul", "Mark"] z = x # Python IS operator print(x is z) Output True Let’s say we consider another example, ... Read More