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 animal sleeps the most?
What should I make with python?
What are metaclasses in python?
Does python has private keyword in python ? How to make any variable private in python ?
Python documentation is called?
What is after quad?
What is a dictionary in python programming?
What are *args and *kwargs?
When do you use list vs. tuple vs. dictionary vs. set?
How do you insert a line break in python?
Which is better PHP or Python?
Explain the difference between append vs extend in list?