How do you make an array in Python?
Answer / chaitanya
The array module contains methods for creating arrays of fixed types with homogeneous data types. Arrays are slower then list.
Array of characters, integers, floating point numbers can be created using array module.
array(typecode[, intializer])
Returns a new array whose items are constrained by typecode, and initialized from the optional initialized value. Where the typecode can be for instance ‘c’ for character value, ‘d’ for double, ‘f’ for float.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is Java implementation of Python popularly know?
What is the best notepad?
Explain Python's data types.
What are Python decorators?
How much do python programmers make?
How to get a random number in python?
Which language should I learn first c or python?
What is asynchronous python?
How can we make forms in python?
How to avoid having class data shared among instances in python?
Does python have private?
What is encapsulation in python?