How to declare and add items to an array in Python

0 votes

I'm trying to add items to an array in python.

array = {}

I try to add something to this array after that by:

array.append(valueToBeInserted)

There doesn't appear to a .append method here. How can I include more items in an array?

Feb 16, 2023 in Python by Arya
• 990 points

edited 5 days ago 6 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP