
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 10401 Articles for Python

171 Views
Introduction The incorporation of web components like Sitemaps and RSS (Really Simple Syndication) Feeds can provide a multitude of benefits such as enhancing user accessibility, augmenting website content consumption, and improving search engine performance. Developers can leverage Django to streamline the process of constructing web applications, resulting in the creation of websites that are exceptionally effective and user-friendly. What is RSS and Sitemap? RSS Feeds are XML files that include summaries of the material on a website, like article headlines and descriptions. Users may simply get the material without visiting the website by reading these files using RSS readers. On ... Read More

651 Views
A numeric string in Python is a string that represents a numerical value using digits, signs, and decimal points, allowing for mathematical operations and data processing. In this article, we will learn a python program to increment numeric strings by K. Example Assume we have taken an input list of strings. We will now increment the numeric strings in an input list by k using the above methods. Input inputList = ["10", "hello", "8", "tutorialspoint", "12", "20"] k = 5 Output ['15', 'hello', '13', 'tutorialspoint', '17', '25'] In the above list, 10, 8, 12 20 are the numeric ... Read More

213 Views
Finding the key of the maximum value tuples in a python dictionary means identifying the key associated with the tuple that has the highest value among all the tuples in the dictionary, which can be useful for retrieving the most significant or relevant information from the data. Example Assume we have taken an input dictionary having values as tuples. We will now find the key of maximum value tuples in an input dictionary using the above methods. Input inputDict = {'hello': ("p", 2), 'tutorialspoint': ("c", 15), 'python': ("k", 8)} Output The key of the maximum value in a ... Read More

563 Views
In Python, a set is an unordered collection of unique elements, represented by {}. It allows efficient membership testing and eliminates duplicate values, making it useful for tasks such as removing duplicates or checking for common elements between sets. In this article, we will learn a python program to find the most common elements set. Methods Used The following are the various methods to accomplish this task: Using for loop and set.intersection() function Using list comprehension, max() and intersection() functions Demonstration Assume we have taken an input list containing sets. We will now get the most ... Read More

191 Views
In Python, strings are a fundamental data type used to represent sequences of characters. They are enclosed in single quotes ('') or double quotes ("") and offer a wide range of operations and methods for manipulation Example Assume we have taken an input string. We will now find the maximum scoring word from an input string using the above methods. Input inputString = "hello tutorialspoint python users and learners" Output Resultant maximum scoring word from the input string: tutorialspoint In the above input string, the sum of characters' positional values of the word tutorialspoint is having the ... Read More

560 Views
In Python, a dictionary is a built-in data structure that stores data in key-value pairs. It allows efficient retrieval and modification of values based on their corresponding keys. Each key in a dictionary must be unique, and it is associated with a specific value. A dictionary of lists is a dictionary where the values associated with each key are lists. This means that each key maps to multiple values, and those values are stored as elements within a list. On the other hand, a list of dictionaries is a list that contains multiple dictionaries as its elements. Each dictionary within ... Read More

471 Views
NumPy is a Python library for numerical computing that provides efficient array operations, and numpy.reshape() is a function used to change the shape of an array, with -1 indicating an inferred dimension. When working with arrays, we frequently get into instances where we need to modify the shape of the array, but doing so requires copying the data first, then arranging it into the required shape which is time taking. Fortunately, Python has a function called reshape() that may help with this. Example 1: Find Unknown Dimensions in Numpy We are only allowed to have one "unknown" dimension while we ... Read More

125 Views
The meaning of value key assignment in Python is the process of associating a value with a specific key within a dictionary, allowing efficient retrieval and manipulation of data based on key-value pairs. It enables the creation and organization of structured data structures for various purposes Python's implementation of a data structure known more commonly as an associative array is a dictionary. A dictionary is made up of a group of key-value pairs. Each key-value combination corresponds to a key and its corresponding value. Example Assume we have taken two input dictionaries with the same keys. We will now compare ... Read More

2K+ Views
A byte string is similar to a string (Unicode), except instead of characters, it contains a series of bytes. Applications that handle pure ASCII text rather than Unicode text can use byte strings. Converting a byte string to a list in Python provides compatibility, modifiability, and easier access to individual bytes. It allows seamless integration with other data structures, facilitates modification of elements, and enables efficient analysis and manipulation of specific parts of the byte string. Demostration Assume we have taken an input byte string. We will now convert the given byte string to the list of ASCII values ... Read More

127 Views
An array(list) of comma-separated values (items) enclosed in square brackets is one of the most flexible data types available in Python. The fact that a list's elements do not have to be of the same type is important. In this article, we will learn a python program to check if any key has all the given list elements. Example Assume we have taken an input dictionary and a list. We will now check whether the values of any key of the input dictionary contain given list elements using the above methods. Input inputDict = {'hello': [4, 2, 8, 1], 'tutorialspoint': ... Read More