Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Python
21.3K+ articles
Misc
8.8K+ articles
Competitive Programming
3.3K+ articles
Strings
3.3K+ articles
Python list-programs
1.7K+ articles
Computer Science Fundamentals
1.5K+ articles
python
1.2K+ articles
python-list
426+ articles
Python-Built-in-functions
139+ articles
python-list-functions
32 posts
Recent Articles
Popular Articles
Different ways to clear a list in Python
Last Updated: 01 December 2024
In this article, we will explore various methods to clear a list in Python. The simplest way to do is by using aloop.Using clear() MethodUsing clear() method we can remove...
read more
Python
python-list
python-list-functions
Python list-programs
Python List copy() Method
Last Updated: 27 April 2025
The copy() method in Python is used to create a shallow copy of a list. This means that the method creates a new list containing the same elements as the original list but...
read more
Python
python-list
python-list-functions
python
Python - Replacing Nth occurrence of multiple characters in a String with the given character
Last Updated: 15 January 2025
Replacing the Nth occurrence of multiple characters in a string with a given character involves identifying and counting specific character occurrences.Using a Loop and fi...
read more
Strings
Python
Competitive Programming
Programming Language
DSA
python-list
Python-array
python-list-functions
How to find the current capacity of a list - Python
Last Updated: 21 January 2025
List in Python is mainly implementation of dynamic sized arrays (like ArrayList in Java or vector in C++). Capacity of a list means number of elements a list can store at ...
read more
Python
python-list
python-list-functions
Difference Between '+' and 'append' in Python
Last Updated: 04 January 2025
+ Operator creates a new sequence by concatenating two existing sequences and .append() method (available for lists) modifies the existing list in place by adding one item...
read more
Python
Difference Between
python-list
python-list-functions
How to Remove Item from a List in Python
Last Updated: 20 November 2024
Lists in Python have various built-in methods to remove items such as remove, pop, del and clear methods. Removing elements from a list can be done in various ways dependi...
read more
Python
python-list
python-list-functions
Difference between Append, Extend and Insert in Python
Last Updated: 04 January 2025
In Python, append(), extend() and insert() are list methods used to add elements to a list. Each method has different behaviors and is used in different scenarios.AppendTh...
read more
Python
Difference Between
python-list
python-list-functions
Python program to print words from a sentence with highest and lowest ASCII value of characters
Last Updated: 08 February 2024
Given a string S of length N, representing a sentence, the task is to print the words with the highest and lowest average of ASCII values of characters.Examples:Input: S =...
read more
Strings
Searching
Mathematical
Technical Scripter
Competitive Programming
Python Programs
DSA
ASCII
python-list-functions
Generate All Possible Permutations of Words ina Sentence
Last Updated: 14 February 2025
Our task is to generate all possible permutations of words in a given sentence. For example, if the input is "sky is blue", the output should include permutations like "sk...
read more
Strings
Combinatorial
Competitive Programming
Python Programs
DSA
permutation
python-list-functions
Python list-programs
Python List append() Method
Last Updated: 18 March 2025
append() method in Python is used to add a single item to the end of list. This method modifies the original list and does not return a new list. Let's look at an example ...
read more
Python
python-list
Python-Built-in-functions
python-list-functions
Python list-programs
Python List clear() Method
Last Updated: 18 December 2024
clear() method in Python is used to remove all elements from a list, effectively making it an empty list. This method does not delete the list itself but clears its conten...
read more
Python
python-list
python-list-functions
python
Python List extend() Method
Last Updated: 10 December 2024
In Python, extend() method is used to add items from one list to the end of another list. This method modifies the original list by appending all items from the given iter...
read more
Python
python-list
python-list-functions
python
Python List max() Method
Last Updated: 17 April 2025
max() function in Python is a built-in function that finds and returns the largest element from the list. Let's understand it better with an example:Pythona = [2,3,6,1,8,4...
read more
Python
python-list
python-list-functions
Sorting List of Lists with First Element of Each Sub-List in Python
Last Updated: 06 February 2024
In Python, sorting a list of lists by the first element of each sub-list is a common task. Whether you're dealing with data points, coordinates, or any other structured in...
read more
Python
Python Programs
Picked
python-list-functions
Python-list-of-lists
python sorting-exercises
How Can Python Lists Transformed into other Data Structures
Last Updated: 12 February 2024
Python, a versatile and widely used programming language, provides a rich set of data structures to accommodate various programming needs. One of the fundamental data stru...
read more
Python
Python Programs
Picked
python-list-functions
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !