Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python append to list

currencies = ['Dollar', 'Euro', 'Pound']

# append 'Yen' to the list
currencies.append('Yen')

print(currencies)

# Output: ['Dollar', 'Euro', 'Pound', 'Yen']
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #append #list
ADD COMMENT
Topic
Name
2+1 =