
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
Found 10476 Articles for Python

634 Views
The integer string is any number that sets within the double quote whereas the integer list is defined as the list of numbers separated by commas. In Python, we have some built−in functions− len(), isdigit(), append(), map(), fromstring(), and, split() that will be used for the Conversion of Integer String to list. For example The given integer string, my_str = “1 2 3 4 5” The final output become [1, 2, 3, 4, 5] Syntax The following syntax is used in the examples- len() The len() is a built−in method in Python that returns the length ... Read More

540 Views
The nested dictionary is a hierarchical data structure where values themselves are called as dictionaries. It allows storing more than one dictionary inside the base dictionary. The mapped tuple is defined by the collection of tuples where individual tuples contain pairing values. By converting one form into another it means to set the changes between key−value pairs into a tuples list. In Python, we have some built−in functions such as isintance(), extend(), append(), and, str() will be used to convert the Nested dictionary to Mapped Tuple. Syntax The following syntax is used in the examples- isintance() The isinstance() is ... Read More

1K+ Views
The group in Python is defined by sets or collections of element that have the same characteristics based on specific conditions or operations. The group can be represented by lists, sets, or other data structures. In this problem statement, the non−zero group refers subset of the list where all the elements are non−zero and adjacent to each other without any zero value in between. In Python, we have some built−in functions like list(), groupby(), lambda, etc. will be used to solve the minimum of non−zero groups. Syntax The following syntax is used in the examples list() list() is a ... Read More

646 Views
The term invoking function refers to recursion which means the function calls itself. The function with parenthesis defines some parameter to work on specific conditions and operations whereas without parenthesis function refers to a function reference. In Python, we have two types of methods such as function reference and function with parameter that will be used to solve the Invoking function with and without Parenthesis. Syntax The following syntax is used in the examples def function_name(): -------- -------- function_name() This is the representation of function with parenthesis. def function_name(): -------- -------- reference = function_name print("The function reference:", reference) ... Read More

380 Views
The Index Mapping Cypher is defined by passing the integer string to get the specific string. In Python, we have some built−in functions such as str(), len(), join(), and, int() will be used to solve the problem based on Index Mapping Cypher. Let’s take an example to understand this: The given string, my_str = “Hyderabad” The given index, idx = 101456 The final result becomes yHyrab Syntax The following syntax is used in the examples- str() This is a built−in function in Python that accepts any value to convert it into string. len() This is a built−in method ... Read More

2K+ Views
In Python, we have some built−in functions like str(), replace(), split(), strip(), and, len() that will be used to solve Interconvert Horizontal and vertical String. Python allows us to convert strings between horizontal and vertical instructions with simple steps by improving readability, formatting, text manipulation, visual creativity, and programming applications. Syntax The following syntax is used in the examples- str() This is an in−built function in Python that converts the value to a string. It prints the value as a string. replace("", "") The replace is a built−in method in Python that accepts two parameters− and "" ... Read More

488 Views
Python has a variety of built-in methods to modify and analyze the text, that contains to find the specific element within them. To solve this problem statement it will use some built-in functions like next(), filter(), and, lambda to find the first even element from the list. The various applications are- data filtering tools, and, content filtering tools. Let’s see how to take the input of the program to get the result: The given list, List_1 = [21, 33, 12, 11, 61, 78] The final result becomes 12 because it is the first even number from the list. Syntax The ... Read More

1K+ Views
The dictionary is one of the four data types in Python that doesn’t allow any key duplicates. In this problem statement, we have to create two dictionaries as user input and check the matches for a common key. If key elements are found as common then it prints the result. This can be possible by using various methods in Python such as type(), items(), set(), etc. Let’s take an example of this: Input: A = { ‘I’: 10, ‘II’: 20, ‘III’: 30, ‘IV’:40 } B = { ‘II’: 40, ‘V’: 60, ‘VI’: 80, ‘I’: 90 } Output: { ‘I’, ‘II’ ... Read More

519 Views
In Python, a tuple is one of the four built−in data types that is used to collect the data and this data is represented by round parenthesis i.e.(). Tuple is generally known for multiple collections of items into a single item. In Python, we have some built−in functions like map(), tuple(), and, lambda will be used to Convert Matrix to Custom Tuple Matrix. The custom tuple matrix is defined by a subclass of a tuple that has elements and it is separated by a comma to create the sublist(list represents matrix). Let’s take an example of this: Original Matrix: ... Read More

3K+ Views
In Python, Tkinter is GUI(Graphical User Interface) based library that accesses easier and faster ways to build the GUI application. The Tkinter Label Widget will be used to build the border that helps to improve the visibility of the user interface. A Tkinter Label Widget is such type of area that shows the text or images. In Python, we have some built−in functions such as Label(), TK(), Frame(), pack(), and, config() will be used to Set the Border of Tkinter Label Widget. Syntax The following syntax is used in the examples- Tk() The Tk() is a built−in function in ... Read More