DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to add to an exsiting value of an index in a list
foo = [1, 2, 3, 4, 5] foo[3] = foo[3] + 4 print(foo) # [1, 2, 3, 8, 5]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#add
#exsiting
#index
#list
ADD COMMENT
Topic
COMMENT
Name
3+5 =
Submit