
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
190 Views
Resources for any programming language includes Video Courses, Notes as well as E-books. Here, I will list the best resources of Python. Python Official Documentation A lot of websites are providing Python resources, but the official documentation still works the best. Let’s see the resources provided by them. ... Read More

AmitDiwan
189 Views
To return an empty object, the object() method is used in Python. This acts as a base for all the classes. Let’s see the syntax of object(). No parameter gets included − object() New properties or methods cannot be added to this object. This itself acts as a base ... Read More

AmitDiwan
2K+ Views
To find the attributes of an object, use the getarr() method in Python. To check if an attribute exist or not, use the hasattr() method. Set an attribute using the setattr() method in Python. Access the attributes of an object Example To access the attributes of an object, we will ... Read More

AmitDiwan
4K+ Views
We can sort a list by values from another list by setting up the 2nd list as index numbers for the values in the 1st List in sorted order. Sort a List by values from another list Example In this example, we will sort a list by values from another ... Read More

AmitDiwan
1K+ Views
Multidimensional Lists are Lists within Lists. The left index as row number and right index as column number, for example list[r][c] Above, r is row number and c is column number. Let’s see an example. For multidimensional list 2x3 − list [2][3] Create a Multidimensional Python List Example ... Read More

AmitDiwan
1K+ Views
The arrays in Python are ndarray objects. To create arrays in Python, use the Numpy library. Array is a container which can hold a fix number of items and these items should be of the same type. To work with arrays in Python, import the NumPy library. First, let us ... Read More

AmitDiwan
4K+ Views
To remove more than one item from a list, we can use various ways as discussed in this article. Let’s say have the following input List − ["David", "Jacob", "Harry", "Mark", "Anthony", "Steve", "Chris"] Following is the output when multiple elements “David” and “Harry” are removed − ["Jacob", "Mark", ... Read More

AmitDiwan
537 Views
To remove duplicates from a List in Python, we can use various ways as discussed in this article. Remove duplicates from a list using Dictionary Example In this example, we will remove duplicates from a list using OrderedDict − from collections import OrderedDict # Creating a List with duplicate ... Read More

AmitDiwan
639 Views
Python Sequences includes Strings, Lists, Tuples, etc. We can merge elements of a Python sequence using different ways. Let’s see some examples of iteration over a List in reverse order. Iterate in Reverse Order using while loop Example In this example, we have a List as a sequence and iterate ... Read More

AmitDiwan
299 Views
First, we will see how to convert Tuple into a List in Python. Convert Tuple with Integer Elements into a List To convert Tuple to a List, use the list() method and set the Tuple to be converted as a parameter. Example Let’s see the example # Creating a Tuple ... Read More