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 the print in python?
Explain classifier.
What is unlink in python?
How do I know my python version?
What is different between class and object?
Why does Python have a maximum recursion depth?
How does break work in python?
What does quit () do in python?
What is @staticmethod?
How python maintains conditional blocks?
How many variables are in python?
How is python executed?