🌐
W3Schools
w3schools.com › python › ref_func_list.asp
Python list() Function
The list() function creates a list object. A list object is a collection which is ordered and changeable. Read more about list in the chapter: Python Lists. ... If you want to use W3Schools services as an educational institution, team or enterprise, ...
🌐
W3Schools
w3schools.com › python › python_lists_methods.asp
Python - List Methods
Python Functions Python Arguments Python *args / **kwargs Python Scope Python Decorators Python Lambda Python Recursion Python Generators Code Challenge Python Range
Discussions

w3schools lists tutorials; half of the functions they use don't seem to work?
The index(), count() and other "functions" you mention aren't standalone functions, they are methods of lists. That means you apply them to the list, like this: test = [1, 2, 3, 4, 5, 6] print(test.index(3)) # print index in list of the element of value 3 The list methods are described in the documentation . More on reddit.com
🌐 r/learnpython
5
2
October 2, 2023
Question about SQL requirements when applying for junior python roles
I wouldn’t wait to apply to jobs just because you don’t have a SQL background. I don’t think I’ve written SQL at work in years. Most work is done with ORMs or NoSQL where I work, and probably most Django devs are using Django’s ORM with some very rare exceptions. I occasionally sit on technical interview panels at work for Python developers and I can give you some advice: Learn SQL (at least basics) concurrently with your job search. Basic proficiency can probably get you by for most positions. Just accept that the positions that focus on strong SQL command aren’t gonna be a good fit for you. Most junior roles aren’t going to have expectations beyond basic proficiency though Be honest about your level of experience. I can respect a candidate that has the courage to tell me they don’t know something but are interested in learning it. I don’t respect a candidate that fumbles their way into trying to give a bullshit answer Present your strengths. This is really something minor that can be learned on the job. This wouldn’t stop me from hiring a junior if they had the other background you have (docker, CI/CD, etc.). Steer the conversation towards the things you are knowledgeable in, and show confidence in your abilities in these areas More on reddit.com
🌐 r/learnpython
12
5
2 weeks ago
Not Understanding Python Example of Recursion from W3Schools
I am reading that as result = 6+ tri_recursion(6 - 1) Which is correct, but what is happening then? You enter the next recursion depth as tri_recursion(5) which because 5 > 0 calls 5 + tri_recursion(5 -1) Brings us to the next depth level as tri_recursion(4) -> 4 + tri_recursion(4-1) Next level: 3 + tri_recursion(3 - 1) -> 3 + tri_recursion(2) Next: 2 + tri_recursion(2 - 1) -> tri_recursion(1) Next: 1 + tri_recursion(1 - 1) -> tri_recursion(0) For tri_recursion(0)´ the conditionk > 0is no longer satisfied and thus theelsebranch is executed which executesreturn(0)` With this return we move one level back in the recursion to result = 1 + tri_recursion(1 - 1) -> we have the return value from the tri_recursion(1 - 1) call, which is 0 -> so it becomes result = 1 + 0 -> result = 1 The next executed line in the code is print(result) -> which prints the 1 The else´ branch is skipped and the next executed line isreturn resultwhich brings us one level back up to2 + tri_recursion(2 - 1)- the return value from before is1, so it becomes2 + 1->3` which is what is printed. And this goes on until you are back out of all levels. That is what recursion is. More on reddit.com
🌐 r/learnprogramming
7
1
May 1, 2020
Am I the only person who thinks W3schools isn't a great resource to learn?
I think people who know the basics and go to w3 to refresh stuff recommend it but they themselves didn't learn it there. More on reddit.com
🌐 r/learnprogramming
75
98
March 13, 2022
🌐
W3Schools
w3schools.com › python › python_ref_list.asp
Python List/Array Methods
Python Functions Python Arguments Python *args / **kwargs Python Scope Python Decorators Python Lambda Python Recursion Python Generators Code Challenge Python Range
🌐
Du
cs.du.edu › ~intropython › intro-to-programming › list_methods.html
List methods - Introduction to Programming
The full list can be found at Python list documentation by w3schools or Offical python documentation on list methods. Here are the list methods you'll learn: the count() and index() methods for counting and searching · theinsert() and extend() methods for adding elements · the pop() and remove() methods and the del keyword for removing elements · the reverse() and sort() methods and the sorted() function ...
🌐
W3Schools
w3schools.com › python › python_lists.asp
Python Lists
List is a collection which is ordered and changeable. Allows duplicate members. Tuple is a collection which is ordered and unchangeable. Allows duplicate members. Set is a collection which is unordered, unchangeable*, and unindexed.
🌐
W3Schools
w3schools.com › python › python_lists_comprehension.asp
Python - List Comprehension
You can use the range() function to create an iterable: newlist = [x for x in range(10)] Try it Yourself » ... The expression is the current item in the iteration, but it is also the outcome, which you can manipulate before it ends up like a list item in the new list: ... The expression can also contain conditions, not like a filter, but as a way to manipulate the outcome: ... If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: sales@w3schools.com
🌐
W3Schools
w3schools.com › python › gloss_python_function_passing_list.asp
Python Passing a List as an Argument
Remove List Duplicates Reverse a String Add Two Numbers · Python Examples Python Compiler Python Exercises Python Quiz Python Challenges Python Practice Problems Python Server Python Syllabus Python Study Plan Python Interview Q&A Python Bootcamp Python Certificate Python Training ... You can send any data types of argument to a function (string, number, list, dictionary etc.), and it will be treated as the same data type inside the function.
🌐
W3Schools
w3schools.com › python › python_lists_exercises.asp
Python - List Exercises
Python Functions Python Arguments Python *args / **kwargs Python Scope Python Decorators Python Lambda Python Recursion Python Generators Code Challenge Python Range
Find elsewhere
🌐
Programiz
programiz.com › python-programming › methods › built-in › list
Python list()
text = 'Python' # convert string to list text_list = list(text) print(text_list) # check type of text_list print(type(text_list)) # Output: ['P', 'y', 't', 'h', 'o', 'n'] # <class 'list'>
🌐
Software Testing Help
softwaretestinghelp.com › home › python › python list functions – tutorial with examples
Python List Functions - Tutorial With Examples
April 1, 2025 - This tutorial explains some useful Python List Functions with the help of syntax and practical programming examples.
🌐
DataCamp
datacamp.com › tutorial › python-list-function
Python List Functions & Methods Tutorial and Examples | DataCamp
December 19, 2022 - The main characteristics of Python lists are that they are iterable, ordered, indexed, mutable, and allow duplicated values. Place a sequence of items inside square brackets and separate them by comma, e.g., ['cake', 'ice-cream', 'donut']. Alternatively, use the list() built-in function with double brackets: list(('cake', 'ice-cream', 'donut')).
🌐
GeeksforGeeks
geeksforgeeks.org › python › list-methods-python
Python List methods - GeeksforGeeks
... pop(): Removes and returns the element at the specified position (or the last element if no index is specified). remove(): Removes the first occurrence of a specified element. reverse(): Reverses the order of the elements in the list. sort(): ...
Published   July 23, 2025
🌐
W3Schools
w3schools.com › python › python_ref_functions.asp
Python Built-in Functions
Remove List Duplicates Reverse a String Add Two Numbers · Python Examples Python Compiler Python Exercises Python Quiz Python Challenges Python Practice Problems Python Server Python Syllabus Python Study Plan Python Interview Q&A Python Bootcamp Python Certificate Python Training ... Python has a set of built-in functions. ... If you want to use W3Schools ...
🌐
Data Science Discovery
discovery.cs.illinois.edu › learn › Basics-of-Data-Science-with-Python › Lists-and-Functions-in-Python
Lists and Functions in Python - Data Science Discovery
Python provides many built-in functions, and you can also define your own using the def keyword. To start, we can begin with an example function and returns the result of adding 10 to the input parameter: # Define the `addTen` function:\ndef addTen(number):\n result = number + 10\n return result\n&nbsp;\n# Call the `addTen` function:\naddTen(25)
🌐
GeeksforGeeks
geeksforgeeks.org › python-list-function
Python list() Function - GeeksforGeeks
March 4, 2025 - Explanation: This code takes user input as a string and converts it into a list of individual characters using list(). ... The Python int() function converts a given object to an integer or converts a decimal (floating-point) number to its integer ...
🌐
HubSpot
blog.hubspot.com › home › the hubspot website blog
Python List Functions: 18 Definitions & Examples
March 20, 2023 - HubSpot’s Website Blog covers everything you need to know to build maintain your company’s website.
🌐
Programiz
programiz.com › python-programming › list
Python List (With Examples)
December 30, 2025 - Python lists store multiple data together in a single variable. In this tutorial, we will learn about Python lists (creating lists, changing list items, removing items, and other list operations) with the help of examples.
🌐
Reddit
reddit.com › r/learnpython › w3schools lists tutorials; half of the functions they use don't seem to work?
r/learnpython on Reddit: w3schools lists tutorials; half of the functions they use don't seem to work?
October 2, 2023 -

Total newbie here. Just been doing some basic exercises and I think the site I'm using is missing some advice, but its such a basic problem I've had no luck googling.

https://www.w3schools.com/python/python_lists.asp

Here they have a list of functions for working with lists; "index()"; "count()"; etc. and implies that these are "built in". However my Python install (3.11.5) doesn't have them as core. I assume I just need to import a module but w3 doesn't tell me which module to import.

Am I right? If so which module is it? I assume its really basic common knowledge.

Thanks x

🌐
Indian Institute of Technology Guwahati
iitg.ac.in › asahu › cs594 › AssignII-PythonStudy.pdf pdf
Python Tutorial (list and function)
Python Tutorial (list and · function) Adopted from: https://www.w3schools.com/python/default.asp · Python Collections (Arrays) There are four collection data types in the Python · programming language: • · List is a collection which is ordered and · changeable. Allows duplicate members.
🌐
Tutorialspoint
tutorialspoint.com › python › python-list-function.htm
Python list() Function
In the following example, we are using the list() function to convert the string "Hello" into a list of its individual characters − · my_string = "Hello" string_list = list(my_string) print('The list object obtained is:',string_list) ... In this example, we apply the list() function to a range object representing the range from 1 to 4 −