
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
436 Views
When it is required to extract the percentages from a string, the regular expressions and the ‘findall’ method of the package is used.ExampleBelow is a demonstration of the same −import re my_string = 'Python is % always fun % to learn % and teach' print("The list is : ... Read More

AmitDiwan
644 Views
When it is required to filter all the uppercase characters from a list of tuples, a simple iteration, a Boolean value, the ‘append’ method and the ‘isupper’ methods are used.ExampleBelow is a demonstration of the same −my_list = [("PYTHON", "IS", "Fun"), ("PYTHON", "COOl"), ("PYTHON", ), "ORIENTED", "OBJECT"] print("The list ... Read More

AmitDiwan
232 Views
When it is required to remove the elements at indices in a list, the ‘enumerate’ attribute, the ‘not in’ operator, a simple iteration and the ‘append’ methods are used.ExampleBelow is a demonstration of the same −my_list = [91, 75, 15, 45, 69, 78, 23, 71, 36, 72] print("The list ... Read More

AmitDiwan
221 Views
When it is required to filter out the tuple that contains same elements, a list comprehension and the ‘set’ operator and the ‘len’ methods can be used.ExampleBelow is a demonstration of the same −my_list = [(31, 54, 45, 11, 99) , (11, 11), (45, 45, 45), (31, 54, 45, 11, ... Read More

AmitDiwan
98 Views
When it is required to convert the rear column of a multi-sized matrix, a simple iteration and the ‘append’ method along with negative indexing is used.ExampleBelow is a demonstration of the same −my_list = [[41, 65, 25], [45, 89], [12, 65, 75, 36, 58], [49, 12, 36, 98], [47, 69, ... Read More

AmitDiwan
194 Views
When it is required to get the maximum of K elements based on another list, a simple iteration, the ‘append’ method and the ‘max’ methods are used.ExampleBelow is a demonstration of the same −my_list_1 = [62, 25, 32, 98, 75, 12, 46, 53] my_list_2 = [91, 42, 48, 76, 23, ... Read More

AmitDiwan
361 Views
When it is required to split a numeric string into K digit integers, a simple iteration, the ‘int’ method and the ‘append’ methods are used.ExampleBelow is a demonstration of the same −my_string = '69426874124863145' print("The string is : " ) print(my_string) K = 4 print("The value of K ... Read More

AmitDiwan
793 Views
When it is required to check if the elements in a specific index are equal to another list of elements, a simple iteration and a Boolean value are used.ExampleBelow is a demonstration of the same −my_list_1 = [69, 96, 23, 57, 13, 75, 13] my_list_2 = [68, 21, 69, 23, ... Read More

AmitDiwan
371 Views
When it is required to find the strings which have all the given characters present in a list, a method is defined that takes the string as a parameter and iterates through the string, and adds the index value to it.ExampleBelow is a demonstration of the same −print("Method definition begins...") ... Read More

AmitDiwan
279 Views
When it is required to filter consecutive elements from a list of tuple, a method is defined that takes a list of tuple as a parameter and checks the index of every tuple, and returns a Boolean value depending on the index.ExampleBelow is a demonstration of the same −print("Method definition ... Read More