
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
1K+ Views
The r in r-strings means raw strings. String literals may optionally be prefixed with a letter 'r' or 'R'; such strings are called raw strings and use different rules for interpreting backslash escape sequences. When an 'r' or 'R' prefix is present, a character following a backslash is included in ... Read More

AmitDiwan
12K+ Views
Yes, there is no goto statement in Python. Let us first understand what is a goto in C Language. However, the usage of goto is also discouraged in C. The goto statement in C programming provides an unconditional jump from the 'goto' to a labelled statement in the same function. ... Read More

AmitDiwan
163 Views
Let us first see what is an interface spec. The interface spec is an interface specification for a module provided by programming languages such as C++ and Java. It describes the prototypes for the methods and functions of the module. The abc module The abc module introduced in Python 2.6 ... Read More

AmitDiwan
562 Views
Example In this example, let’s first see the usage of list.sort() before moving further. Here, we have created a List and sorted in Ascending order using the sort() method − # Creating a List myList = ["Jacob", "Harry", "Mark", "Anthony"] # Displaying the List print("List = ", myList) ... Read More

AmitDiwan
2K+ Views
To understand why dictionary keys must be immutable. Let us related it to hash table. The hash table implementation of dictionaries uses a hash value calculated from the key value to find the key. If let’s say the key was a mutable object, its value could change, and thus its ... Read More

AmitDiwan
680 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
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
6K+ 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
268 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
727 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