DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
map function to change type of element in python
nums
=
[
'3'
,
'4'
,
'7'
]
nums
=
list
(
map
(
int
,
nums
)
)
print
(
nums
)
PREVIOUS
NEXT
Tagged:
#map
#function
#change
#type
#element
#python
ADD COMMENT
Topic
COMMENT
Name
7+6 =
Submit