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
What does the map() function do?
Is cython as fast as c?
What is metadata in python?
Does Python support Multithreading?
How do I run a script in python shell?
Tell us what is the usage of help() and dir() function in python?
What are the 3 types of numbers in python?
Does python have a ternary conditional operator?
What are the two main types of functions in python?
What is the biggest challenge facing your current job right now? What is your biggest failure?
What can I build with python?
Is Python good for backend?
Does xrange work python 3?
What does sort () do in python?
Write a program in python to produce star triangle.