Python Arrays-question-1

Last Updated :
Discuss
Comments

Which of the following is the correct way to create an array in Python using the array module?

array = [1, 2, 3]

array = array('i', [1, 2, 3])

array = (1, 2, 3)

array = {1, 2, 3}

Share your thoughts in the comments