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
• 870 points
44 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 23 in Python by Gitika
• 33,770 points
92 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,400 points
9,998 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
135 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
234 views
+4 votes
7 answers
0 votes
1 answer
+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 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,206 views
0 votes
0 answers
+4 votes
6 answers