Examveda

What is the correct way to initialize an array of size 5 in Python?

A. array = [0] * 5

B. array = {0, 0, 0, 0, 0}

C. array = (0, 0, 0, 0, 0)

D. array = new array[5]

Answer: Option A


This Question Belongs to Data Structure >> Arrays In Data Structures

Join The Discussion

Related Questions on Arrays in Data Structures