how can we convert all the strings in a list into integers in one line
Answers
Answered by
0
Answer:
The most Pythonic way to convert a list of strings to a list of ints is to use the list comprehension [int(x) for x in strings] . It iterates over all elements in the list and converts each list element x to an integer value using the int(x) built-in function.
Answered by
1
hey I think I am able to answer your question
you have to use the map function in this
mark me as brainliest
Attachments:
Similar questions