by @saigowthamr

How to convert a list of strings to Integers in Python

Home » python » How to convert a list of strings to Integers in Python

To convert a list of strings into integers, we can use the map() function in python.

Here is an example

stringNumbers = ["1","2","3","4"]

numbers = list(map(int,stringNumbers))

print(numbers)

Output:

[1, 2, 3, 4]