You can add elements inside a list very easy. Check out these options:
list = ['First Value', 'Second Value', 'Third Value']
list.append('New Value')
list.insert(0, 'Another Value')
print(list)
Output:
list = ['Another Value', 'First Value', 'Second Value', 'Third Value', 'New Value']
-------------------------Subscribe----------------------------
• If you like to see a variety of fun and interactive projects written in Python
• If you love ☕ and 🐶 WAIT! - Yeah! Definitely, coffee and dogs!
-----------------------------------------------------------------------
-------------------------Socials----------------------------
• Twitter: / iftodd1
• Facebook: / iftodd
• Instagram: / if_todd
------------------------------------------------------------------
-------------------------Support----------------------------
You can support me here: / if_todd
--------------------------------------------------------------------
How to add elements to a list? | Python #shorts #python #list