Given:

xs = ['1', '2', '3']

Use map then list to obtain a list of integers:

list(map(int, xs))

In Python 2, list was unnecessary since map returned a list:

map(int, xs)
Answer from cheeken on Stack Overflow
Discussions

Convert List<string> to List<int> in C# - Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives ... Bring the best of human thought and AI automation together at your work. Explore Stack Internal ... I want to convert a List to a List. More on stackoverflow.com
🌐 stackoverflow.com
How to convert string list to int list?
This is not how you would do this in Python. Any time you see code with range(len(something)), you know you are doing it wrong. The way to do it would be this: numbers = [int(num) for num in numbers] More on reddit.com
🌐 r/learnpython
8
5
June 4, 2023
String List to Int List!? - Scripting - Unity Discussions
Hello! I have a List … full of numbers ( I can’t for my purposes simply creating a int list ). Now I need to convert this String list (1,2,3,4,5) into a INT list. Is there a simple way to do it, knowing that those strings are numbers only? (No need to check) Thanks for your help … as usual! More on discussions.unity.com
🌐 discussions.unity.com
0
September 22, 2019
Convert list of string elements to list of integers
You can use the map function. lst = map(int, lst) This applies any function you want onto all the elements of an iterable. In this case, int() is applied to each element. More on reddit.com
🌐 r/learnpython
9
2
November 26, 2020
🌐
Baeldung
baeldung.com › home › java › java list › convert a list of strings to a list of integers
Convert a List of Strings to a List of Integers | Baeldung
June 9, 2025 - In this short article, we’ve learned three ways to convert List<String> to List<Integer>. Stream API would be the most straightforward conversion method if we work with Java 8 or a later version. Otherwise, we can apply the conversion through a loop or turn to an external library, such as Guava.
🌐
Makolyte
makolyte.com › csharp-convert-string-list-to-int-list
C# - Convert string list to int list | makolyte
January 26, 2025 - You can convert a list of strings to a list of integers by using int.Parse() on all of the strings.
Find elsewhere
🌐
Techie Delight
techiedelight.com › home › java › convert list of string to list of int in c#
Convert List of string to List of Int in C# | Techie Delight
July 7, 2026 - We can use LINQ’s Select() method to convert List<string> to List<int> in C#. The Select() method projects each element of a sequence into a new form.
🌐
Unity
discussions.unity.com › scripting
String List to Int List!? - Scripting - Unity Discussions
September 22, 2019 - Hello! I have a List … full of numbers ( I can’t for my purposes simply creating a int list ). Now I need to convert this String list (1,2,3,4,5) into a INT list. Is there a simple way to do it, knowing that those str…
🌐
Reddit
reddit.com › r/learnpython › convert list of string elements to list of integers
r/learnpython on Reddit: Convert list of string elements to list of integers
November 26, 2020 -

Hi all.

I've recently started to dive into Python, and i find it refreshing, frustrating, fascinating and sometimes hopeless.

I've got an assignment that's due in 3 hours, and i can't for the life of me figure it out. Could anyone help?

I've got a long list of numbers i've imported from a csv file, but they dont appear to be integers. They come out as f.ex: '334', '234', '543' etc. Can anyone tell me how to convert the entire list to a list of integers?

🌐
GeeksforGeeks
geeksforgeeks.org › python › python-converting-all-strings-in-list-to-integers
Converting all Strings in a List to Integers - Python - GeeksforGeeks
July 11, 2025 - We are given a list of strings containing numbers and our task is to convert these strings into integers. For example, if the input list is ["1", "2", "3"] the output should be [1, 2, 3]. Note: If our list contains elements that cannot be converted into integers such as alphabetic characters, strings or special symbols, trying to convert them using int() will raise a ValueError or Invalid Literal Error.
🌐
Reddit
reddit.com › r/csharp › from a string to a list
r/csharp on Reddit: From a String to a List
February 9, 2019 -

Hi everyone I'm a beginner with C# and I was making a simple Console Application. What I want to do is that the user can insert a string (I use Console.ReadLine) and the program convert it into a list (which will be used later) For example if I write "1 3 -2 -5 1" I want that the program add to an empty list the values 1, 3, -2,...

Is it possible? And if it is, how should I do it? Thanks in advance and sorry if I made some mistakes (I'm not English)

🌐
GeeksforGeeks
geeksforgeeks.org › python › python-convert-list-of-numerical-string-to-list-of-integers
Python | Convert list of numerical string to list of Integers - GeeksforGeeks
July 11, 2025 - For each sublist, apply the reduce() function to concatenate all the strings in that sublist. Convert the concatenated string to an integer list by iterating over each character of the string and converting it to an integer.
🌐
PythonForBeginners.com
pythonforbeginners.com › home › list of strings to list of integers in python
List of Strings to List of Integers in Python - PythonForBeginners.com
April 1, 2022 - Lists are one of the most used container objects in python programming. In this article, we will discuss various approaches to convert a list of strings to a list of integers in python. We can convert a list of strings to a list of integers using a for loop and the int() function.
🌐
Finxter
blog.finxter.com › how-to-convert-a-string-list-to-an-integer-list-in-python
How to Convert a String List to an Integer List in Python – Be on the Right Side of Change
April 9, 2021 - These two steps are integral, and none can be skipped because you need the float to be capable of representing any number. But you also need the integer, as this is the goal you set out to do: converting a list of strings to a list of ints.
🌐
TutorialsPoint
tutorialspoint.com › article › program-to-convert-list-of-string-to-list-of-integer-in-java
Program to convert List of String to List of Integer in Java
September 23, 2019 - List<Integer> listInteger = listString.stream().map(Integer::parseInt).collect(Collectors.toList()); Following is the program to convert List of String to List of Integer in Java −