Answer Posted / 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 |
Post New Answer View All Answers
Different file processing modes supported by python?
Explain identity operators in python?
Why main method is static?
Explain about different blocks in exception handling?
What are class methods in python?
What is operator overloading in python?
What does range () do in python?
Is print a function in python 3?
What happens when you execute python == python?
What is ord () in python?
What is a pass in python?
What sort does python use?
How is print statement represented in python 3 (v/s python2)?
Explain the Meaning of a single and double underscore before an object name?
How is fail over mechanism works in python?