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 a new element to a list in python
#!/usr/bin/env python # simple.py nums = [1, 2, 3, 4, 5] nums.append(6)
Source by zetcode.com #
PREVIOUS
NEXT
Tagged:
#add
#element
#list
#python
ADD COMMENT
Topic
COMMENT
Name
1+6 =
Submit