Create an empty array

0 votes
How do I create an empty array of a fixed size in python?
Jun 7, 2018 in Python by nightshade
• 880 points
498 views

1 answer to this question.

0 votes
You don't have to. The size of an array can be increased using extend() or decreased using pop(). So why is it necessary to fix the list size beforehand?
answered Jun 7, 2018 by Hamartia's Mask
• 1,580 points

Related Questions In Python

0 votes
1 answer

How to create an empty NumPy array?

Hey, @Roshni, To create an empty array with ...READ MORE

answered Jun 24, 2020 in Python by Gitika
• 65,770 points
3,757 views
0 votes
1 answer

Create an empty list in python with certain size

Try this instead: lst = [None] * 10 The ...READ MORE

answered Aug 2, 2018 in Python by bug_seeker
• 15,510 points
28,122 views
0 votes
1 answer

Is it possible to create an array with all values as zero in python?

You can use  np.zeros(4,3) This will create a 4 ...READ MORE

answered May 24, 2019 in Python by Anjali
1,129 views
0 votes
1 answer

Create an empty tkinter window - Python

Its pretty simple: # import the module import Tkinter $Create ...READ MORE

answered Jul 22, 2019 in Python by Aysha
3,881 views
+4 votes
7 answers
0 votes
1 answer
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,434 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
4,071 views
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