Python List append()

PHOTO EMBED

Mon Dec 26 2022 01:31:09 GMT+0000 (Coordinated Universal Time)

Saved by @Mostafa_malmir

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

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

print(currencies)

# Output: ['Dollar', 'Euro', 'Pound', 'Yen']
content_copyCOPY

https://www.programiz.com/python-programming/methods/list/append