DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
converting list of string into integers
lis = ['1', '-4', '3', '-6', '7'] res = [eval(i) for i in lis] print("Modified list is: ", res)
Source by www.geeksforgeeks.org #
PREVIOUS
NEXT
Tagged:
#converting
#list
#string
#integers
ADD COMMENT
Topic
COMMENT
Name
8+9 =
Submit